public final class ImmutablePayloadTableEntry extends Object implements PayloadTable.Entry
PayloadTable.Entry.| Constructor and Description |
|---|
ImmutablePayloadTableEntry(byte[] row,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
int |
getGeneration()
Returns the generation id of the topic.
|
byte[] |
getPayload()
Returns the message payload.
|
short |
getPayloadSequenceId()
Returns the sequence id generated when the payload was written to the payload table.
|
long |
getPayloadWriteTimestamp()
Returns the timestamp in milliseconds when the payload was written to the payload table.
|
co.cask.cdap.proto.id.TopicId |
getTopicId()
Returns the topic id that the entry belongs to.
|
long |
getTransactionWritePointer()
Returns the transaction write pointer for storing the payload.
|
public ImmutablePayloadTableEntry(byte[] row,
byte[] payload)
public co.cask.cdap.proto.id.TopicId getTopicId()
PayloadTable.EntrygetTopicId in interface PayloadTable.Entrypublic int getGeneration()
PayloadTable.EntrygetGeneration in interface PayloadTable.Entrypublic byte[] getPayload()
PayloadTable.EntrygetPayload in interface PayloadTable.Entrypublic long getTransactionWritePointer()
PayloadTable.EntrygetTransactionWritePointer in interface PayloadTable.Entrypublic long getPayloadWriteTimestamp()
PayloadTable.EntrygetPayloadWriteTimestamp in interface PayloadTable.Entrypublic short getPayloadSequenceId()
PayloadTable.EntrygetPayloadSequenceId in interface PayloadTable.EntryCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.