public abstract class AbstractCursor<E> extends Object implements Cursor<E>
| Constructor and Description |
|---|
AbstractCursor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNotClosed(String operation)
Check that the cursor is not closed.
|
void |
close()
Closes this Cursor and frees any resources it my have allocated.
|
void |
close(Exception cause)
Closes this Cursor and frees any resources it my have allocated.
|
boolean |
isClosed()
Checks if this Cursor is closed.
|
Iterator<E> |
iterator() |
void |
setClosureMonitor(ClosureMonitor monitor)
Sets a non-null closure monitor to associate with this Cursor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafter, afterLast, available, before, beforeFirst, first, get, isElementReused, last, next, previousforEach, spliteratorpublic final void setClosureMonitor(ClosureMonitor monitor)
setClosureMonitor in interface Cursor<E>monitor - the monitor to use for detecting Cursor close eventsprotected final void checkNotClosed(String operation) throws Exception
operation - Exceptionpublic final boolean isClosed()
public void close(Exception cause) throws Exception
public void close()
throws Exception
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.