public class TierPartitionForceRestore extends AbstractTierMetadata
Constructor and Description |
---|
TierPartitionForceRestore(TopicIdPartition topicIdPartition,
PartitionForceRestore metadata) |
TierPartitionForceRestore(TopicIdPartition topicIdPartition,
UUID messageId,
long startOffset,
long endOffset,
OffsetAndEpoch stateOffsetAndEpoch,
String contentHash,
Boolean restoreLogStartOffset) |
Modifier and Type | Method and Description |
---|---|
String |
contentHash() |
long |
endOffset() |
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() |
boolean |
restoreLogStartOffset() |
long |
startOffset() |
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() |
byte |
version() |
deserialize, deserialize, deserializeKey, deserializeKey, equals, getTypeId, hashCode, messageIdAsBase64, serializeKey, serializeValue
public TierPartitionForceRestore(TopicIdPartition topicIdPartition, UUID messageId, long startOffset, long endOffset, OffsetAndEpoch stateOffsetAndEpoch, String contentHash, Boolean restoreLogStartOffset)
public TierPartitionForceRestore(TopicIdPartition topicIdPartition, PartitionForceRestore metadata)
public static int initialBufferSize()
public long startOffset()
public long endOffset()
public String contentHash()
public byte version()
public boolean restoreLogStartOffset()
public TierRecordType type()
type
in class AbstractTierMetadata
public TopicIdPartition topicIdPartition()
AbstractTierMetadata
topicIdPartition
in class AbstractTierMetadata
public ByteBuffer payloadBuffer()
payloadBuffer
in class AbstractTierMetadata
public int tierEpoch()
AbstractTierMetadata
tierEpoch
in class AbstractTierMetadata
public OffsetAndEpoch stateOffsetAndEpoch()
AbstractTierMetadata
stateOffsetAndEpoch
in class AbstractTierMetadata
public UUID messageId()
AbstractTierMetadata
messageId
in class AbstractTierMetadata