- java.lang.Object
-
- org.snmp4j.mp.SimpleMessageID
-
- org.snmp4j.mp.TimedMessageID
-
- All Implemented Interfaces:
java.io.Serializable
,MessageID
public class TimedMessageID extends SimpleMessageID
TheTimedMessageID
adds system time information to the message ID that allows to measure response times and detect lost messages with SNMPv3.- Since:
- 2.4.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private long
creationNanoTime
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description TimedMessageID(int messageID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCreationNanoTime()
Gets theSystem.nanoTime()
when this message ID object has been created.java.lang.String
toString()
-
Methods inherited from class org.snmp4j.mp.SimpleMessageID
equals, getID, hashCode
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
creationNanoTime
private long creationNanoTime
-
-
Method Detail
-
getCreationNanoTime
public long getCreationNanoTime()
Gets theSystem.nanoTime()
when this message ID object has been created.- Returns:
- the creation time stamp in nano seconds.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSimpleMessageID
-
-