Module org.snmp4j

Class TableUtils.InternalTableListener

  • All Implemented Interfaces:
    java.util.EventListener, TableListener
    Enclosing class:
    TableUtils

    protected class TableUtils.InternalTableListener
    extends java.lang.Object
    implements TableListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finished​(TableEvent event)
      Indicates in a series of table events that no more events will follow.
      java.util.List<TableEvent> getRows()  
      boolean isFinished()
      Indicates whether the tree walk is complete or not.
      boolean next​(TableEvent 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
    • Constructor Detail

      • InternalTableListener

        protected InternalTableListener()
    • Method Detail

      • next

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

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

        public java.util.List<TableEvent> getRows()
      • isFinished

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