Package org.snmp4j.util
Interface TreeListener
- All Superinterfaces:
EventListener
The
TreeListener
interface is implemented by objects
listening for tree events.- Since:
- 1.8
- Version:
- 1.10
- Author:
- Frank Fock
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Indicates in a series of tree events that no more events will follow.boolean
Indicates whether the tree walk is complete or not.boolean
Consumes the next table event, which is typically the next row in a table retrieval operation.
-
Method Details
-
next
Consumes the next table event, which is typically the next row in a table retrieval operation.- Parameters:
event
- aTableEvent
instance.- Returns:
true
if this listener wants to receive more events, otherwise returnfalse
. For example, aTreeListener
can returnfalse
to stop tree retrieval.
-
finished
Indicates in a series of tree events that no more events will follow.- Parameters:
event
- aTreeEvent
instance that will either indicate an error (RetrievalEvent.isError()
returnstrue
) or success of the tree retrieval operation.
-
isFinished
boolean isFinished()Indicates whether the tree walk is complete or not.- Returns:
true
if it is complete,false
otherwise.- Since:
- 1.10
-