public class PduHandle extends Object implements Serializable
PduHandle
class represents an unique key for a SNMP PDU.
It uses an unique transaction ID (request ID) to identify the PDUs.Modifier and Type | Field and Description |
---|---|
static int |
NONE |
Constructor and Description |
---|
PduHandle()
Creates a
PduHandle with a transaction ID set to NONE . |
PduHandle(int transactionID)
Creates a
PduHandle for the supplied transaction ID. |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(PduHandle other)
Copy all members from the supplied
PduHandle . |
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() |
public static final int NONE
public PduHandle()
PduHandle
with a transaction ID set to NONE
.public PduHandle(int transactionID)
PduHandle
for the supplied transaction ID.transactionID
- an unqiue transaction ID.public int getTransactionID()
public void setTransactionID(int transactionID)
transactionID
- an unqiue transaction ID.public void copyFrom(PduHandle other)
PduHandle
.other
- a PduHandle.public boolean equals(Object obj)
public int hashCode()
Copyright © 2019 SNMP4J.org. All rights reserved.