Enum Envelope.Operation

java.lang.Object
java.lang.Enum<Envelope.Operation>
io.debezium.data.Envelope.Operation
All Implemented Interfaces:
Serializable, Comparable<Envelope.Operation>
Enclosing class:
Envelope

public static enum Envelope.Operation extends Enum<Envelope.Operation>
The constants for the values for the operation field in the message envelope.
  • Enum Constant Details

    • READ

      public static final Envelope.Operation READ
      The operation that read the current state of a record, most typically during snapshots.
    • CREATE

      public static final Envelope.Operation CREATE
      An operation that resulted in a new record being created in the source.
    • UPDATE

      public static final Envelope.Operation UPDATE
      An operation that resulted in an existing record being updated in the source.
    • DELETE

      public static final Envelope.Operation DELETE
      An operation that resulted in an existing record being removed from or deleted in the source.
    • TRUNCATE

      public static final Envelope.Operation TRUNCATE
      An operation that resulted in an existing table being truncated in the source.
    • MESSAGE

      public static final Envelope.Operation MESSAGE
      An operation that resulted in a generic message
  • Field Details

    • code

      private final String code
  • Constructor Details

    • Operation

      private Operation(String code)
  • Method Details

    • values

      public static Envelope.Operation[] 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 Envelope.Operation 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
    • forCode

      public static Envelope.Operation forCode(String code)
    • code

      public String code()