Interface LockEventChannel
-
public interface LockEventChannelEvent channel used to transmit lock events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusterOperationcreate(NodeId nodeId)Create a new cluster operation that should be used to inform other instances in the cluster.ClusterOperationcreate(NodeId nodeId, boolean deep, String owner)Create a new cluster operation that should be used to inform other instances in the cluster.voidsetListener(LockEventListener listener)Set listener that will receive information about incoming, external 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 iddeep- flag indicating whether lock is deepowner- lock owner- Returns:
- cluster operation or
nullif 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
nullif 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
-
-