- 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
- Author:
- Frank Fock
- See Also:
- Serialized Form
-
-
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
-
-
-
-
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
-
-