xmlBlaster 2.1.0 API

org.xmlBlaster.util
Class RcvTimestamp

java.lang.Object
  extended by org.xmlBlaster.util.Timestamp
      extended by 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

Field Summary
 
Fields inherited from class org.xmlBlaster.util.Timestamp
BILLION, MILLION, tagName
 
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
 
Method Summary
 
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
 

Constructor Detail

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


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.