Interface PartitionListener

    • Method Detail

      • onBecomingFollower

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

        ActorFuture<Void> onBecomingLeader​(int partitionId,
                                           long term,
                                           LogStream logStream)
        Is called by the ZeebePartition on becoming partition leader after all partition installation/clean up related things are done.
        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

        ActorFuture<Void> onBecomingInactive​(int partitionId,
                                             long term)
        Is called by the ZeebePartition on becoming inactive after a Raft role change or a failed transition.
        Parameters:
        partitionId - the corresponding partition id
        term - the current term
        Returns:
        future that should be completed by the listener