Module org.snmp4j

Class TreeUtils.InternalTreeListener

  • All Implemented Interfaces:
    java.util.EventListener, TreeListener
    Enclosing class:
    TreeUtils

    class TreeUtils.InternalTreeListener
    extends java.lang.Object
    implements TreeListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finished​(TreeEvent event)
      Indicates in a series of tree events that no more events will follow.
      java.util.List<TreeEvent> getCollectedEvents()  
      boolean isFinished()
      Indicates whether the tree walk is complete or not.
      boolean next​(TreeEvent event)
      Consumes the next table event, which is typically the next row in a table retrieval operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • collectedEvents

        private java.util.List<TreeEvent> collectedEvents
      • finished

        private volatile boolean finished
    • Constructor Detail

      • InternalTreeListener

        public InternalTreeListener​(java.util.List<TreeEvent> eventList)
    • Method Detail

      • 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.
      • 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.
      • getCollectedEvents

        public java.util.List<TreeEvent> getCollectedEvents()
      • 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.