public class Heartbeat extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.kafka.common.protocol.types.Schema |
HEADER_SCHEMA |
static org.apache.kafka.common.protocol.types.Schema |
KEY_SCHEMA |
static String |
SOURCE_CLUSTER_ALIAS_KEY |
static String |
TARGET_CLUSTER_ALIAS_KEY |
static String |
TIMESTAMP_KEY |
static org.apache.kafka.common.protocol.types.Schema |
VALUE_SCHEMA_V0 |
static short |
VERSION |
static String |
VERSION_KEY |
Constructor and Description |
---|
Heartbeat(String sourceClusterAlias,
String targetClusterAlias,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
static Heartbeat |
deserializeRecord(ConsumerRecord<byte[],byte[]> record) |
String |
sourceClusterAlias() |
String |
targetClusterAlias() |
long |
timestamp() |
String |
toString() |
public static final String SOURCE_CLUSTER_ALIAS_KEY
public static final String TARGET_CLUSTER_ALIAS_KEY
public static final String TIMESTAMP_KEY
public static final String VERSION_KEY
public static final short VERSION
public static final org.apache.kafka.common.protocol.types.Schema VALUE_SCHEMA_V0
public static final org.apache.kafka.common.protocol.types.Schema KEY_SCHEMA
public static final org.apache.kafka.common.protocol.types.Schema HEADER_SCHEMA
public String sourceClusterAlias()
public String targetClusterAlias()
public long timestamp()
public static Heartbeat deserializeRecord(ConsumerRecord<byte[],byte[]> record)