org.huihoo.jfox.ms.jms.util
Class JMSTimestamp

java.lang.Object
  extended byjava.util.Date
      extended byorg.huihoo.jfox.ms.jms.util.JMSTimestamp
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

public class JMSTimestamp
extends java.util.Date

This class implements timestamp for Messages.

Version:
Revision: 1.1 Date: 2002-11-03 22:24:28
Author:
Peter.Cheng
See Also:
Serialized Form

Constructor Summary
JMSTimestamp()
          Default Constructor without param
JMSTimestamp(long timestamp)
          Build JMSTimestamp with special time.
 
Method Summary
 long getCurrentTime()
          Return time as milliseconds since epoc.
 void setCurrentTime(long timestamp)
          Set the current time.
 java.lang.String toString()
           
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMSTimestamp

public JMSTimestamp()
Default Constructor without param


JMSTimestamp

public JMSTimestamp(long timestamp)
Build JMSTimestamp with special time.

Parameters:
timestamp -
Method Detail

getCurrentTime

public long getCurrentTime()
                    throws javax.jms.JMSException
Return time as milliseconds since epoc.

Returns:
the current time
Throws:
javax.jms.JMSException

setCurrentTime

public void setCurrentTime(long timestamp)
Set the current time.

Parameters:
timestamp -

toString

public java.lang.String toString()


Copyright © 2002-2003 Open Enterprise Foundation. All Rights Reserved.