Package io.debezium.data
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 theoperation
field in the message envelope.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE
An operation that resulted in a new record being created in the source.DELETE
An operation that resulted in an existing record being removed from or deleted in the source.MESSAGE
An operation that resulted in a generic messageREAD
The operation that read the current state of a record, most typically during snapshots.TRUNCATE
An operation that resulted in an existing table being truncated in the source.UPDATE
An operation that resulted in an existing record being updated in the source.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
static Envelope.Operation
forCode(String code)
static Envelope.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static Envelope.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
code
private final String code
-
-
Constructor Detail
-
Operation
private Operation(String code)
-
-
Method Detail
-
values
public static Envelope.Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Envelope.Operation c : Envelope.Operation.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
forCode
public static Envelope.Operation forCode(String code)
-
code
public String code()
-
-