Interface LockEventChannel


  • public interface LockEventChannel
    Event channel used to transmit lock events.
    • Method Detail

      • create

        ClusterOperation create​(NodeId nodeId,
                                boolean deep,
                                String owner)
        Create a new cluster operation that should be used to inform other instances in the cluster. Called when a node is about to be locked.
        Parameters:
        nodeId - node id
        deep - flag indicating whether lock is deep
        owner - lock owner
        Returns:
        cluster operation or null if the cluster node is not started or some error occurs
      • create

        ClusterOperation create​(NodeId nodeId)
        Create a new cluster operation that should be used to inform other instances in the cluster. Called when a node has been unlocked.
        Parameters:
        nodeId - node id
        Returns:
        cluster operation or null if the cluster node is not started or some error occurs
      • setListener

        void setListener​(LockEventListener listener)
        Set listener that will receive information about incoming, external lock events.
        Parameters:
        listener - lock event listener