public abstract class AbstractAgentXPending extends Object implements AgentXPending
Modifier and Type | Field and Description |
---|---|
protected AgentXRegEntry |
registration |
Constructor and Description |
---|
AbstractAgentXPending(AgentXRegEntry registration,
SnmpRequest request) |
Modifier and Type | Method and Description |
---|---|
AgentXRegEntry |
getRegistration() |
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, wait
getAgentXPDU, getReferences, getSession
protected AgentXRegEntry registration
public AbstractAgentXPending(AgentXRegEntry registration, SnmpRequest request)
public void updateTimestamp()
AgentXPending
updateTimestamp
in interface AgentXPending
public long getTimestamp()
AgentXPending
AgentXPending.updateTimestamp()
had been called last.getTimestamp
in interface AgentXPending
System.currentTimeMillis()
when AgentXPending.updateTimestamp()
had been called or zero if it had not been called yet.public void setTimeout(int timeoutSeconds)
setTimeout
in interface AgentXPending
public void setPending(boolean pending)
setPending
in interface AgentXPending
public int getTimeout()
AgentXPending
getTimeout
in interface AgentXPending
public AgentXRegEntry getRegistration()
getRegistration
in interface AgentXPending
public boolean isPending()
isPending
in interface AgentXPending
public SnmpRequest getRequest()
getRequest
in interface AgentXPending
protected final String toStringMembers()
Copyright © 2016 SNMP4J.org. All rights reserved.