- java.lang.Object
-
- org.snmp4j.mp.SimpleMessageID
-
- org.snmp4j.mp.TimedMessageID
-
- All Implemented Interfaces:
java.io.Serializable,MessageID
public class TimedMessageID extends SimpleMessageID
TheTimedMessageIDadds 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 longgetCreationNanoTime()Gets theSystem.nanoTime()when this message ID object has been created.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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:
toStringin classSimpleMessageID
-
-