org.snmp4j.util
Interface TableListener

All Superinterfaces:
java.util.EventListener

public interface TableListener
extends java.util.EventListener

The TableListener interface is implemented by objects listening for table events. Table events typically contain row data.

Since:
1.0.2
Version:
1.0.2
Author:
Frank Fock
See Also:
TableUtils

Method Summary
 void finished(TableEvent event)
          Indicates in a series of table events that no more events will follow.
 boolean next(TableEvent event)
          Consumes the next table event, which is typically the next row in a table retrieval operation.
 

Method Detail

next

boolean next(TableEvent event)
Consumes the next table event, which is typically the next row in a table retrieval operation.

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

void finished(TableEvent event)
Indicates in a series of table events that no more events will follow.

Parameters:
event - a TableEvent instance that will either indicate an error (RetrievalEvent.isError() returns true) or success of the table operation.

Copyright 2003-2008 Frank Fock and Jochen Katz (SNMP4J.org)