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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Copy all members from the suppliedPduHandle
.boolean
Indicates whether some other object is "equal to" this one.int
Gets the transaction ID of this handle.int
hashCode()
Returns a hash code value for the object.void
setTransactionID
(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 aPduHandle
with a transaction ID set toNONE
. -
PduHandle
public PduHandle(int transactionID) Creates aPduHandle
for 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
-