Class PartitionTransitionImpl

    • Method Detail

      • toFollower

        public ActorFuture<Void> toFollower​(long currentTerm)
        Description copied from interface: PartitionTransition
        Transitions to follower asynchronously by closing the current partition's components and opening a follower partition.
        Specified by:
        toFollower in interface PartitionTransition
        Parameters:
        currentTerm - the current term on which the transition happens
        Returns:
        an ActorFuture to be completed when the transition is complete
      • toLeader

        public ActorFuture<Void> toLeader​(long currentTerm)
        Description copied from interface: PartitionTransition
        Transitions to leader asynchronously by closing the current partition's components and opening a leader partition.
        Specified by:
        toLeader in interface PartitionTransition
        Parameters:
        currentTerm - the current term on which the transition happens
        Returns:
        an ActorFuture to be completed when the transition is complete