Interface PartitionTransition

    • 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