public class ReplicaFetcherTierStateMachine extends Object implements TierStateMachine
Constructor and Description |
---|
ReplicaFetcherTierStateMachine(kafka.server.LeaderEndPoint leader,
kafka.server.ReplicaManager replicaMgr) |
Modifier and Type | Method and Description |
---|---|
Optional<kafka.server.PartitionFetchState> |
maybeAdvanceState(org.apache.kafka.common.TopicPartition topicPartition,
kafka.server.PartitionFetchState currentFetchState)
This is currently a no-op but will be used for implementing async tiering logic in KAFKA-13560.
|
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.
|
public ReplicaFetcherTierStateMachine(kafka.server.LeaderEndPoint leader, kafka.server.ReplicaManager replicaMgr)
public kafka.server.PartitionFetchState start(org.apache.kafka.common.TopicPartition topicPartition, kafka.server.PartitionFetchState currentFetchState, org.apache.kafka.common.message.FetchResponseData.PartitionData fetchPartitionData) throws Exception
start
in interface TierStateMachine
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
public Optional<kafka.server.PartitionFetchState> maybeAdvanceState(org.apache.kafka.common.TopicPartition topicPartition, kafka.server.PartitionFetchState currentFetchState)
maybeAdvanceState
in interface TierStateMachine
topicPartition
- the topic partitioncurrentFetchState
- the current PartitionFetchState which will
be used to derive the return value