Class SubscriptionApiCommandMessageHandlerService

    • Constructor Detail

      • SubscriptionApiCommandMessageHandlerService

        public SubscriptionApiCommandMessageHandlerService​(BrokerInfo localBroker,
                                                           Atomix atomix)
    • Method Detail

      • 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)
        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
        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