Package org.jgroups.util
Class Owner
java.lang.Object
org.jgroups.util.Owner
- All Implemented Interfaces:
Comparable<Owner>,Streamable
Represents an 'owner', which is an address and thread ID
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanlonginthashCode()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutput 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
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:
IOExceptionClassNotFoundException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Owner>
-
toString
-