Module org.snmp4j

Class SnmpURI.AsyncTreeListener

java.lang.Object
org.snmp4j.uri.SnmpURI.AsyncTreeListener
All Implemented Interfaces:
EventListener, TreeListener
Enclosing class:
SnmpURI<A extends Address>

private class SnmpURI.AsyncTreeListener extends Object implements TreeListener
  • Field Details

    • finished

      private volatile boolean finished
    • url

      private URI url
    • callback

      private SnmpUriCallback callback
  • Constructor Details

  • Method Details

    • next

      public boolean next(TreeEvent event)
      Description copied from interface: TreeListener
      Consumes the next table event, which is typically the next row in a table retrieval operation.
      Specified by:
      next in interface TreeListener
      Parameters:
      event - a TableEvent instance.
      Returns:
      true if this listener wants to receive more events, otherwise return false. For example, a TreeListener can return false to stop tree retrieval.
    • createResponse

      private SnmpUriResponse createResponse(TreeEvent event)
    • finished

      public void finished(TreeEvent event)
      Description copied from interface: TreeListener
      Indicates in a series of tree events that no more events will follow.
      Specified by:
      finished in interface TreeListener
      Parameters:
      event - a TreeEvent instance that will either indicate an error (RetrievalEvent.isError() returns true) or success of the tree retrieval operation.
    • isFinished

      public boolean isFinished()
      Description copied from interface: TreeListener
      Indicates whether the tree walk is complete or not.
      Specified by:
      isFinished in interface TreeListener
      Returns:
      true if it is complete, false otherwise.