public class TierPartitionFence extends AbstractTierMetadata
Constructor and Description |
---|
TierPartitionFence(TopicIdPartition topicIdPartition,
PartitionFence metadata) |
TierPartitionFence(TopicIdPartition topicIdPartition,
UUID messageId,
boolean freezeLogStartOffset) |
Modifier and Type | Method and Description |
---|---|
boolean |
freezeLogStartOffset() |
static int |
initialBufferSize()
The initial buffer size to use when constructing the FlatBuffer message.
|
UUID |
messageId()
Get a unique id for this message.
|
ByteBuffer |
payloadBuffer() |
OffsetAndEpoch |
stateOffsetAndEpoch()
The lastMaterializedOffsetAndEpoch for the tier partition state at the time this metadata was generated.
|
int |
tierEpoch()
tierEpoch for the tier metadata
|
TopicIdPartition |
topicIdPartition()
Topic-partition corresponding to this tier metadata.
|
String |
toString() |
TierRecordType |
type() |
deserialize, deserialize, deserializeKey, deserializeKey, equals, getTypeId, hashCode, messageIdAsBase64, serializeKey, serializeValue
public TierPartitionFence(TopicIdPartition topicIdPartition, UUID messageId, boolean freezeLogStartOffset)
public TierPartitionFence(TopicIdPartition topicIdPartition, PartitionFence metadata)
public static int initialBufferSize()
public TierRecordType type()
type
in class AbstractTierMetadata
public ByteBuffer payloadBuffer()
payloadBuffer
in class AbstractTierMetadata
public UUID messageId()
AbstractTierMetadata
messageId
in class AbstractTierMetadata
public TopicIdPartition topicIdPartition()
AbstractTierMetadata
topicIdPartition
in class AbstractTierMetadata
public OffsetAndEpoch stateOffsetAndEpoch()
AbstractTierMetadata
stateOffsetAndEpoch
in class AbstractTierMetadata
public int tierEpoch()
AbstractTierMetadata
tierEpoch
in class AbstractTierMetadata
public boolean freezeLogStartOffset()