public interface TierStateMachine
Modifier and Type | Method and Description |
---|---|
Optional<kafka.server.PartitionFetchState> |
maybeAdvanceState(org.apache.kafka.common.TopicPartition topicPartition,
kafka.server.PartitionFetchState currentFetchState)
Optionally advance the state of the tier state machine, based on the
current PartitionFetchState.
|
kafka.server.PartitionFetchState |
start(org.apache.kafka.common.TopicPartition topicPartition,
kafka.server.PartitionFetchState currentFetchState,
org.apache.kafka.common.message.FetchResponseData.PartitionData fetchPartitionData)
Start the tier state machine for the provided topic partition.
|
kafka.server.PartitionFetchState start(org.apache.kafka.common.TopicPartition topicPartition, kafka.server.PartitionFetchState currentFetchState, org.apache.kafka.common.message.FetchResponseData.PartitionData fetchPartitionData) throws Exception
topicPartition
- the topic partitioncurrentFetchState
- the current PartitionFetchState which will
be used to derive the return valuefetchPartitionData
- the data from the fetch response that returned the offset moved to tiered storage errorException
Optional<kafka.server.PartitionFetchState> maybeAdvanceState(org.apache.kafka.common.TopicPartition topicPartition, kafka.server.PartitionFetchState currentFetchState)
topicPartition
- the topic partitioncurrentFetchState
- the current PartitionFetchState which will
be used to derive the return value