cgl.narada.service.security.kmc
Class TimeStampedSeqNo
java.lang.Object
cgl.narada.service.security.kmc.TimeStampedSeqNo
public class TimeStampedSeqNo
- extends Object
A structure that maintains the current NTP timestamp and a sequence number
Created on Sep 14, 2005
TimeStampedSeqNo
public TimeStampedSeqNo(long ts,
int seq)
getTimeStamp
public long getTimeStamp()
- Returns:
- Returns the _currentTimeStamp.
getSequenceNumber
public int getSequenceNumber()
- Returns:
- Returns the _sequenceNumber.
isGreater
public boolean isGreater(TimeStampedSeqNo prev)
- Checks of the specified TimeStampedSeqNo is greater than the current one
- Parameters:
stssn -
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
getBytes
public byte[] getBytes()
unmarshal
public static TimeStampedSeqNo unmarshal(byte[] bytes)
For comments and suggestions please send
e-mail to
The NaradaBrokering Project