public abstract class AbstractAgentXPending extends Object implements AgentXPending
| Modifier and Type | Field and Description |
|---|---|
protected AgentXRegEntry |
registration |
| Constructor and Description |
|---|
AbstractAgentXPending(AgentXRegEntry registration,
org.snmp4j.agent.request.SnmpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
AgentXRegEntry |
getRegistration() |
org.snmp4j.agent.request.SnmpRequest |
getRequest() |
int |
getTimeout()
Gets the timeout seconds set for this pending AgentX request.
|
long |
getTimestamp()
Gets the timestamp (in milliseconds) when
AgentXPending.updateTimestamp()
had been called last. |
boolean |
isPending() |
void |
setPending(boolean pending) |
void |
setTimeout(int timeoutSeconds) |
String |
toString() |
protected String |
toStringMembers() |
void |
updateTimestamp()
Set the timestamp to the current time (in milliseconds).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAgentXPDU, getReferences, getSessionprotected AgentXRegEntry registration
public AbstractAgentXPending(AgentXRegEntry registration, org.snmp4j.agent.request.SnmpRequest request)
public void updateTimestamp()
AgentXPendingupdateTimestamp in interface AgentXPendingpublic long getTimestamp()
AgentXPendingAgentXPending.updateTimestamp()
had been called last.getTimestamp in interface AgentXPendingSystem.currentTimeMillis() when AgentXPending.updateTimestamp()
had been called or zero if it had not been called yet.public void setTimeout(int timeoutSeconds)
setTimeout in interface AgentXPendingpublic void setPending(boolean pending)
setPending in interface AgentXPendingpublic int getTimeout()
AgentXPendinggetTimeout in interface AgentXPendingpublic AgentXRegEntry getRegistration()
getRegistration in interface AgentXPendingpublic boolean isPending()
isPending in interface AgentXPendingpublic org.snmp4j.agent.request.SnmpRequest getRequest()
getRequest in interface AgentXPendingprotected final String toStringMembers()
Copyright © 2020 SNMP4J.org. All rights reserved.