Class SubscriptionApiCommandMessageHandlerService

java.lang.Object
io.camunda.zeebe.util.sched.Actor
io.camunda.zeebe.broker.engine.impl.SubscriptionApiCommandMessageHandlerService
All Implemented Interfaces:
PartitionListener, DiskSpaceUsageListener, CloseableSilently, AsyncClosable, ConcurrencyControl, AutoCloseable

public final class SubscriptionApiCommandMessageHandlerService extends Actor implements PartitionListener, DiskSpaceUsageListener
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Overrides:
      getName in class Actor
    • onActorStarting

      protected void onActorStarting()
      Overrides:
      onActorStarting in class Actor
    • onBecomingFollower

      public ActorFuture<Void> onBecomingFollower(int partitionId, long term)
      Description copied from interface: PartitionListener
      Is called by the ZeebePartition on becoming partition follower after all partition installation/clean up related things are done.
      Specified by:
      onBecomingFollower in interface PartitionListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
      Returns:
      future that should be completed by the listener
    • onBecomingLeader

      public ActorFuture<Void> onBecomingLeader(int partitionId, long term, LogStream logStream, QueryService queryService)
      Description copied from interface: PartitionListener
      Is called by the ZeebePartition on becoming partition leader after all partition installation/clean up related things are done.
      Specified by:
      onBecomingLeader in interface PartitionListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
      logStream - the corresponding log stream
      queryService - the corresponding query service
      Returns:
      future that should be completed by the listener
    • onBecomingInactive

      public ActorFuture<Void> onBecomingInactive(int partitionId, long term)
      Description copied from interface: PartitionListener
      Is called by the ZeebePartition on becoming inactive after a Raft role change or a failed transition.
      Specified by:
      onBecomingInactive in interface PartitionListener
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
      Returns:
      future that should be completed by the listener
    • onDiskSpaceNotAvailable

      public void onDiskSpaceNotAvailable()
      Description copied from interface: DiskSpaceUsageListener
      Will be called when disk space usage grows above the threshold
      Specified by:
      onDiskSpaceNotAvailable in interface DiskSpaceUsageListener
    • onDiskSpaceAvailable

      public void onDiskSpaceAvailable()
      Description copied from interface: DiskSpaceUsageListener
      Will be called when disk space usage goes below the threshold after it was above it.
      Specified by:
      onDiskSpaceAvailable in interface DiskSpaceUsageListener