Package org.jgroups.util
Class Owner
- java.lang.Object
-
- org.jgroups.util.Owner
-
- All Implemented Interfaces:
java.lang.Comparable<Owner>,Streamable
public class Owner extends java.lang.Object implements Streamable, java.lang.Comparable<Owner>
Represents an 'owner', which is an address and thread ID- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Owner o)booleanequals(java.lang.Object obj)AddressgetAddress()longgetThreadId()inthashCode()voidreadFrom(java.io.DataInput in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedjava.lang.StringtoString()voidwriteTo(java.io.DataOutput out)Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Field Detail
-
address
protected Address address
-
thread_id
protected long thread_id
-
-
Constructor Detail
-
Owner
public Owner()
-
Owner
public Owner(Address address, long thread_id)
-
-
Method Detail
-
getAddress
public Address getAddress()
-
getThreadId
public long getThreadId()
-
writeTo
public void writeTo(java.io.DataOutput out) throws java.io.IOExceptionDescription 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:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionDescription 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:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(Owner o)
- Specified by:
compareToin interfacejava.lang.Comparable<Owner>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-