Class BufferedMOTableModel.RowBufferIterator
java.lang.Object
org.snmp4j.agent.mox.BufferedMOTableModel.RowBufferIterator
- All Implemented Interfaces:
Iterator<R>
- Enclosing class:
BufferedMOTableModel<R extends org.snmp4j.agent.mo.MOTableRow>
-
Constructor Summary
ConstructorsConstructorDescriptionRowBufferIterator(org.snmp4j.smi.OID lowerBound) Creates the iterator with the specified start row. -
Method Summary
Modifier and TypeMethodDescriptionprotected BufferedMOTableModel<R>.BufferedMOTableRow<R> fetchNextBufferRow(org.snmp4j.smi.OID lowerBound, BufferedMOTableModel<R>.BufferedMOTableRow<R> predecessor, boolean includeLowerBound) Fetches the next buffered row following the given lower bound.booleanhasNext()next()voidremove()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
RowBufferIterator
public RowBufferIterator(org.snmp4j.smi.OID lowerBound) Creates the iterator with the specified start row.- Parameters:
lowerBound- the lower bound index (inclusive) of the first row to return. Ifnullis specified, the first row will be returned by first call ofnext().
-
-
Method Details
-
hasNext
-
next
-
remove
-
fetchNextBufferRow
protected BufferedMOTableModel<R>.BufferedMOTableRow<R> fetchNextBufferRow(org.snmp4j.smi.OID lowerBound, BufferedMOTableModel<R>.BufferedMOTableRow<R> predecessor, boolean includeLowerBound) Fetches the next buffered row following the given lower bound. If a valid successor is already present in the buffer it is returned as a buffer hit, otherwise the backend table is queried and the buffer is updated accordingly.- Parameters:
lowerBound- the OID after (or at, depending onincludeLowerBound) which the next row is searched.predecessor- the buffered row that immediately precedes the searched row, ornullif unknown.includeLowerBound- iftrue, a row whose index equalslowerBoundis eligible to be returned, otherwise only rows with an index greater thanlowerBoundare considered.- Returns:
- the next buffered row, or
nullif no such row exists.
-