Enum Class ResourceChecks

java.lang.Object
java.lang.Enum<ResourceChecks>
com.hazelcast.jet.mongodb.ResourceChecks
All Implemented Interfaces:
Serializable, Comparable<ResourceChecks>, Constable

public enum ResourceChecks extends Enum<ResourceChecks> implements Serializable
Defines when and if database and collection existence will be checked.
Since:
5.4
  • Enum Constant Details

    • ON_EACH_CONNECT

      public static final ResourceChecks ON_EACH_CONNECT
      Check will be done on every connect action on every processor.
    • ONCE_PER_JOB

      public static final ResourceChecks ONCE_PER_JOB
      Check will be done once per each job execution (when job starts from scratch or from snapshot).
    • ONLY_INITIAL

      public static final ResourceChecks ONLY_INITIAL
      (SQL-only) check will be done only during initial mapping creation.
    • NEVER

      public static final ResourceChecks 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

      public static ResourceChecks[] 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

      public static ResourceChecks valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      public static ResourceChecks fromString(String code)
      Resolves given string value to one of values of this enum.
    • isEverPerformed

      public boolean isEverPerformed()
      Returns:
      Is check ever done?