Class PartitionTransitionImpl

java.lang.Object
io.camunda.zeebe.broker.system.partitions.impl.PartitionTransitionImpl
All Implemented Interfaces:
PartitionTransition

public final class PartitionTransitionImpl extends Object implements PartitionTransition
  • Constructor Details

  • Method Details

    • toFollower

      public ActorFuture<Void> toFollower(long term)
      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:
      term - 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 term)
      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:
      term - the current term on which the transition happens
      Returns:
      an ActorFuture to be completed when the transition is complete
    • toInactive

      public ActorFuture<Void> toInactive(long term)
      Description copied from interface: PartitionTransition
      Closes the current partition's components asynchronously.
      Specified by:
      toInactive in interface PartitionTransition
      Returns:
      an ActorFuture completed when the transition is complete
    • setConcurrencyControl

      public void setConcurrencyControl(ConcurrencyControl concurrencyControl)
      Description copied from interface: PartitionTransition
      Sets the ConcurrencyControl through which tasks are executed.
      Specified by:
      setConcurrencyControl in interface PartitionTransition
      Parameters:
      concurrencyControl - the concurrency control
    • updateTransitionContext

      public void updateTransitionContext(PartitionTransitionContext transitionContext)
      Description copied from interface: PartitionTransition
      Sets the transition context
      Specified by:
      updateTransitionContext in interface PartitionTransition
      Parameters:
      transitionContext - the context to be used
    • transitionTo

      public ActorFuture<Void> transitionTo(long term, RaftServer.Role role)