Package io.hekate.lock
Interface LockOwnerInfo
-
public interface LockOwnerInfo
Provides information aboutDistributedLock
owner.- See Also:
DistributedLock.owner()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusterNode
node()
Returns a cluster node that currently holds the lock.long
threadId()
Returns an identifier of a thread that currently holds the lock.
-
-
-
Method Detail
-
threadId
long threadId()
Returns an identifier of a thread that currently holds the lock.- Returns:
- Thread identifier.
- See Also:
Thread.getId()
-
node
ClusterNode node()
Returns a cluster node that currently holds the lock.- Returns:
- Cluster node that holds the lock.
-
-