- java.lang.Object
-
- org.snmp4j.mp.PduHandle
-
- All Implemented Interfaces:
Serializable
public class PduHandle extends Object implements Serializable
ThePduHandle
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
NONE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrom(PduHandle other)
Copy all members from the suppliedPduHandle
.boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one.int
getTransactionID()
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.String
toString()
-
-
-
Field Detail
-
NONE
public static final int NONE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
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
public void copyFrom(PduHandle other)
Copy all members from the suppliedPduHandle
.- Parameters:
other
- a PduHandle.
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
-