public abstract class DecodedPduEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
consumed |
| Constructor and Description |
|---|
DecodedPduEvent(java.lang.Object source,
Pdu p,
int prt)
The constructor for a decoded pdu event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consume()
Consumes this event so that it will not be sent to any other
listeners.
|
int |
getHostPort()
The remote port number of the host where the pdu came from.
|
Pdu |
getPdu()
The pdu.
|
boolean |
isConsumed()
Returns whether or not this event has been consumed.
|
public DecodedPduEvent(java.lang.Object source,
Pdu p,
int prt)
source - The source (SnmpContext) of the eventp - The pduprt - The remote port number of the host where the pdu came fromgetHostPort(),
getPdu()public int getHostPort()
public Pdu getPdu()
public void consume()
public boolean isConsumed()
consume()