Package org.jgroups.blocks.locking
Class Owner
java.lang.Object
org.jgroups.blocks.locking.Owner
- All Implemented Interfaces:
Streamable
Represents the owner of a lock. Wraps address and thread ID
- Author:
- Bela Ban
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
address
-
thread_id
protected long thread_id
-
-
Constructor Details
-
Owner
public Owner() -
Owner
-
-
Method Details
-
getAddress
-
getThreadId
public long getThreadId() -
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-
equals
-
hashCode
public int hashCode() -
toString
-