- 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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private longcreationNanoTimeprivate static longserialVersionUID
-
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 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:
toStringin classSimpleMessageID
-
-