Interface LockEventChannel
-
public interface LockEventChannel
Event channel used to transmit lock events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusterOperation
create(NodeId nodeId)
Create a new cluster operation that should be used to inform other instances in the cluster.ClusterOperation
create(NodeId nodeId, boolean deep, String owner)
Create a new cluster operation that should be used to inform other instances in the cluster.void
setListener(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
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
-
-