Class LockOwner
- java.lang.Object
-
- com.oracle.coherence.concurrent.locks.LockOwner
-
- All Implemented Interfaces:
ExternalizableLite,PortableObject,Serializable
public class LockOwner extends Object implements ExternalizableLite, 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)UIDgetMemberId()Return the member UID.longgetThreadId()Return the thread ID.inthashCode()voidreadExternal(PofReader in)voidreadExternal(DataInput in)StringtoString()voidwriteExternal(PofWriter out)voidwriteExternal(DataOutput out)
-
-
-
Constructor Detail
-
LockOwner
public LockOwner()
Default constructor for serialization interfaces
-
LockOwner
public LockOwner(UID memberId, long threadId)
ConstructLockOwnerinstance.- Parameters:
memberId- the member UIDthreadId- the thread ID
-
-
Method Detail
-
getMemberId
public UID getMemberId()
Return the member UID.- Returns:
- the member UID
-
getThreadId
public long getThreadId()
Return the thread ID.- Returns:
- the thread ID
-
readExternal
public void readExternal(DataInput in) throws IOException
- Specified by:
readExternalin interfaceExternalizableLite- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizableLite- Throws:
IOException
-
readExternal
public void readExternal(PofReader in) throws IOException
- Specified by:
readExternalin interfacePortableObject- Throws:
IOException
-
writeExternal
public void writeExternal(PofWriter out) throws IOException
- Specified by:
writeExternalin interfacePortableObject- Throws:
IOException
-
-