public static enum CanalEntry.EntryType extends java.lang.Enum<CanalEntry.EntryType> implements com.google.protobuf.ProtocolMessageEnum
com.alibaba.otter.canal.protocol.EntryType
打散后的事件类型,主要用于标识事务的开始,变更数据,结束*
| 枚举常量和说明 |
|---|
GTIDLOG
GTIDLOG = 5; |
HEARTBEAT
HEARTBEAT = 4;
心跳类型,内部使用,外部暂不可见,可忽略 *
|
ROWDATA
ROWDATA = 2; |
TRANSACTIONBEGIN
TRANSACTIONBEGIN = 1; |
TRANSACTIONEND
TRANSACTIONEND = 3; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
GTIDLOG_VALUE
GTIDLOG = 5; |
static int |
HEARTBEAT_VALUE
HEARTBEAT = 4;
心跳类型,内部使用,外部暂不可见,可忽略 *
|
static int |
ROWDATA_VALUE
ROWDATA = 2; |
static int |
TRANSACTIONBEGIN_VALUE
TRANSACTIONBEGIN = 1; |
static int |
TRANSACTIONEND_VALUE
TRANSACTIONEND = 3; |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CanalEntry.EntryType> |
internalGetValueMap() |
static CanalEntry.EntryType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CanalEntry.EntryType |
valueOf(int value) |
static CanalEntry.EntryType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static CanalEntry.EntryType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CanalEntry.EntryType TRANSACTIONBEGIN
TRANSACTIONBEGIN = 1;public static final CanalEntry.EntryType ROWDATA
ROWDATA = 2;public static final CanalEntry.EntryType TRANSACTIONEND
TRANSACTIONEND = 3;public static final CanalEntry.EntryType HEARTBEAT
HEARTBEAT = 4;
心跳类型,内部使用,外部暂不可见,可忽略 *
public static final CanalEntry.EntryType GTIDLOG
GTIDLOG = 5;public static final int TRANSACTIONBEGIN_VALUE
TRANSACTIONBEGIN = 1;public static final int ROWDATA_VALUE
ROWDATA = 2;public static final int TRANSACTIONEND_VALUE
TRANSACTIONEND = 3;public static final int HEARTBEAT_VALUE
HEARTBEAT = 4;
心跳类型,内部使用,外部暂不可见,可忽略 *
public static final int GTIDLOG_VALUE
GTIDLOG = 5;public static CanalEntry.EntryType[] values()
for (CanalEntry.EntryType c : CanalEntry.EntryType.values()) System.out.println(c);
public static CanalEntry.EntryType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static CanalEntry.EntryType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<CanalEntry.EntryType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CanalEntry.EntryType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.