Interface PartitionTransition
-
- All Known Implementing Classes:
PartitionTransitionImpl
public interface PartitionTransition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActorFuture<Void>toFollower(long currentTerm)Transitions to follower asynchronously by closing the current partition's components and opening a follower partition.ActorFuture<Void>toInactive()Closes the current partition's components asynchronously.ActorFuture<Void>toLeader(long currentTerm)Transitions to leader asynchronously by closing the current partition's components and opening a leader partition.
-
-
-
Method Detail
-
toFollower
ActorFuture<Void> toFollower(long currentTerm)
Transitions to follower asynchronously by closing the current partition's components and opening a follower partition.- Parameters:
currentTerm- the current term on which the transition happens- Returns:
- an ActorFuture to be completed when the transition is complete
-
toLeader
ActorFuture<Void> toLeader(long currentTerm)
Transitions to leader asynchronously by closing the current partition's components and opening a leader partition.- Parameters:
currentTerm- the current term on which the transition happens- Returns:
- an ActorFuture to be completed when the transition is complete
-
toInactive
ActorFuture<Void> toInactive()
Closes the current partition's components asynchronously.- Returns:
- an ActorFuture completed when the transition is complete
-
-