java.lang.Object
org.snmp4j.uri.SnmpURI.AsyncTreeListener
- All Implemented Interfaces:
EventListener,TreeListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SnmpUriResponsecreateResponse(TreeEvent event) voidIndicates in a series of tree events that no more events will follow.booleanIndicates whether the tree walk is complete or not.booleanConsumes the next table event, which is typically the next row in a table retrieval operation.
-
Field Details
-
finished
private volatile boolean finished -
url
-
callback
-
-
Constructor Details
-
AsyncTreeListener
-
-
Method Details
-
next
Description copied from interface:TreeListenerConsumes the next table event, which is typically the next row in a table retrieval operation.- Specified by:
nextin interfaceTreeListener- Parameters:
event- aTableEventinstance.- Returns:
trueif this listener wants to receive more events, otherwise returnfalse. For example, aTreeListenercan returnfalseto stop tree retrieval.
-
createResponse
-
finished
Description copied from interface:TreeListenerIndicates in a series of tree events that no more events will follow.- Specified by:
finishedin interfaceTreeListener- Parameters:
event- aTreeEventinstance that will either indicate an error (RetrievalEvent.isError()returnstrue) or success of the tree retrieval operation.
-
isFinished
public boolean isFinished()Description copied from interface:TreeListenerIndicates whether the tree walk is complete or not.- Specified by:
isFinishedin interfaceTreeListener- Returns:
trueif it is complete,falseotherwise.
-