org.xmlBlaster.util
Class RcvTimestamp
java.lang.Object
org.xmlBlaster.util.Timestamp
org.xmlBlaster.util.RcvTimestamp
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class RcvTimestamp
- extends Timestamp
- implements java.io.Serializable
Timestamp for received messages, time elapsed since 1970, the nanos are simulated
as a unique counter.
<rcvTimestamp nanos='1013346248150000001'>
2002-02-10 14:04:08.150000001
</rcvTimestamp>
or
<rcvTimestamp nanos='1013346248150000001'/>
- Author:
- Marcel Ruff
- See Also:
Timestamp
,
Serialized Form
Constructor Summary |
RcvTimestamp()
Constructs a current timestamp which is guaranteed to be unique in time for this JVM |
RcvTimestamp(long nanos)
Create a Timestamp with given nanoseconds since 1970 |
Methods inherited from class org.xmlBlaster.util.Timestamp |
compareTo, equals, equals, getMillis, getMillisOnly, getNanosOnly, getTime, getTimestamp, getTimestampLong, main, millisToNice, sleep, toString, toXml, toXml, toXml, valueOf |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RcvTimestamp
public RcvTimestamp()
- Constructs a current timestamp which is guaranteed to be unique in time for this JVM
- Throws:
java.lang.RuntimeException
- on overflow (never happens :-=)
RcvTimestamp
public RcvTimestamp(long nanos)
- Create a Timestamp with given nanoseconds since 1970
Copyright © 1999-2014 The xmlBlaster.org contributers.