Package org.snmp4j.mp
Class PduHandle
java.lang.Object
org.snmp4j.mp.PduHandle
- All Implemented Interfaces:
Serializable
The
PduHandle class represents an unique key for a SNMP PDU.
It uses an unique transaction ID (request ID) to identify the PDUs.- Since:
- 1.0
- Version:
- 1.0.3
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy all members from the suppliedPduHandle.booleanIndicates whether some other object is "equal to" this one.intGets the transaction ID of this handle.inthashCode()Returns a hash code value for the object.voidsetTransactionID(int transactionID) Sets the transaction ID which is typically the request ID of the PDU.toString()
-
Field Details
-
NONE
public static final int NONE- See Also:
-
-
Constructor Details
-
PduHandle
public PduHandle()Creates aPduHandlewith a transaction ID set toNONE. -
PduHandle
public PduHandle(int transactionID) Creates aPduHandlefor the supplied transaction ID.- Parameters:
transactionID- an unqiue transaction ID.
-
-
Method Details
-
getTransactionID
public int getTransactionID()Gets the transaction ID of this handle.- Returns:
- the transaction ID.
-
setTransactionID
public void setTransactionID(int transactionID) Sets the transaction ID which is typically the request ID of the PDU.- Parameters:
transactionID- an unqiue transaction ID.
-
copyFrom
Copy all members from the suppliedPduHandle.- Parameters:
other- a PduHandle.
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the object. -
toString
-