Package org.jgroups.util
Class MillisAddress
java.lang.Object
org.jgroups.util.MillisAddress
- All Implemented Interfaces:
Comparable<Address>,Address,Constructable<MillisAddress>,SizeStreamable,Streamable
Address with current time as key. Used by testing only!
- Since:
- 5.5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintcompareTo(MillisAddress val) Supplier<? extends MillisAddress> create()Creates an instance of the class implementing this interfacebooleaninthashCode()longmillis()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintReturns the size (in bytes) of the marshalled objecttoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgroups.Address
isMulticast, isSiteAddress, isSiteMaster
-
Field Details
-
millis
protected long millis
-
-
Constructor Details
-
MillisAddress
public MillisAddress() -
MillisAddress
public MillisAddress(long m) -
MillisAddress
-
-
Method Details
-
millis
public long millis() -
create
Description copied from interface:ConstructableCreates an instance of the class implementing this interface- Specified by:
createin interfaceConstructable<MillisAddress>
-
compareTo
- Specified by:
compareToin interfaceComparable<Address>
-
compareTo
-
hashCode
public int hashCode() -
equals
-
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object- Specified by:
serializedSizein interfaceSizeStreamable
-
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
-
toString
-