Enum AsyncEmbeddedEngine.State

java.lang.Object
java.lang.Enum<AsyncEmbeddedEngine.State>
io.debezium.embedded.async.AsyncEmbeddedEngine.State
All Implemented Interfaces:
Serializable, Comparable<AsyncEmbeddedEngine.State>
Enclosing class:
AsyncEmbeddedEngine<R>

private static enum AsyncEmbeddedEngine.State extends Enum<AsyncEmbeddedEngine.State>
Possible engine states. Engine state must be changed only via AsyncEmbeddedEngine.setEngineState(State, State) method.
  • Enum Constant Details

  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static AsyncEmbeddedEngine.State[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AsyncEmbeddedEngine.State valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • shouldStopTasks

      public static boolean shouldStopTasks(AsyncEmbeddedEngine.State state)
      Given the engine state, determines if the connector tasks were already started and should be stopped.
      Parameters:
      state - Engine AsyncEmbeddedEngine.State when the shutdown was called.
      Returns:
      true if connector tasks were already started, false otherwise.
    • canBeStopped

      public static boolean canBeStopped(AsyncEmbeddedEngine.State state)
      Given engine state, determines if engine can be stopped when it's in this state.
      Parameters:
      state - Engine AsyncEmbeddedEngine.State from which engine shutdown is intended to be called.
      Returns:
      true if engine can be stopped, false otherwise.