Package com.hazelcast.jet.mongodb
Enum Class ResourceChecks
- All Implemented Interfaces:
Serializable
,Comparable<ResourceChecks>
,Constable
Defines when and if database and collection existence will be checked.
- Since:
- 5.4
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCheck won't be ever done, meaning that the database and collection will be created automatically by Mongo when it's accessed for the first time.Check will be done on every connect action on every processor.Check will be done once per each job execution (when job starts from scratch or from snapshot).(SQL-only) check will be done only during initial mapping creation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceChecks
fromString
(String code) Resolves given string value to one of values of this enum.boolean
static ResourceChecks
Returns the enum constant of this class with the specified name.static ResourceChecks[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_EACH_CONNECT
Check will be done on every connect action on every processor. -
ONCE_PER_JOB
Check will be done once per each job execution (when job starts from scratch or from snapshot). -
ONLY_INITIAL
(SQL-only) check will be done only during initial mapping creation. -
NEVER
Check won't be ever done, meaning that the database and collection will be created automatically by Mongo when it's accessed for the first time.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
Resolves given string value to one of values of this enum. -
isEverPerformed
public boolean isEverPerformed()- Returns:
- Is check ever done?
-