Class LockOwner
- java.lang.Object
-
- com.oracle.coherence.concurrent.locks.LockOwner
-
- All Implemented Interfaces:
com.tangosol.io.ExternalizableLite,com.tangosol.io.pof.PortableObject,Serializable
public class LockOwner extends Object implements com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject
The identity of a lock owner, represented by the UID of the member, and the ID of a thread holding or attempting to acquire the lock.- Author:
- Aleks Seovic 2021.10.19
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.tangosol.util.UUIDgetMemberId()Return the member UID.longgetThreadId()Return the thread ID.inthashCode()booleanisClient()Returntrueif this lock owner is a remote client (Extend or gRPC).voidreadExternal(com.tangosol.io.pof.PofReader in)voidreadExternal(DataInput in)StringtoString()voidwriteExternal(com.tangosol.io.pof.PofWriter out)voidwriteExternal(DataOutput out)
-
-
-
Method Detail
-
getMemberId
public com.tangosol.util.UUID getMemberId()
Return the member UID.- Returns:
- the member UID
-
getThreadId
public long getThreadId()
Return the thread ID.- Returns:
- the thread ID
-
isClient
public boolean isClient()
Returntrueif this lock owner is a remote client (Extend or gRPC).- Returns:
trueif this lock owner is a remote client (Extend or gRPC)
-
readExternal
public void readExternal(DataInput in) throws IOException
- Specified by:
readExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Specified by:
writeExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
-