|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.cursor.AbstractCursor<E>
public abstract class AbstractCursor<E>
Simple class that contains often used Cursor code.
| Constructor Summary | |
|---|---|
AbstractCursor()
|
|
| Method Summary | |
|---|---|
protected void |
checkNotClosed(java.lang.String operation)
|
void |
close()
Closes this Cursor and frees any resources it my have allocated. |
void |
close(java.lang.Exception cause)
Closes this Cursor and frees any resources it my have allocated. |
boolean |
isClosed()
Checks if this Curser is closed. |
java.util.Iterator<E> |
iterator()
|
void |
setClosureMonitor(ClosureMonitor monitor)
Sets a non-null closure monitor to associate with this Cursor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.server.core.cursor.Cursor |
|---|
after, afterLast, available, before, beforeFirst, first, get, isElementReused, last, next, previous |
| Constructor Detail |
|---|
public AbstractCursor()
| Method Detail |
|---|
public final void setClosureMonitor(ClosureMonitor monitor)
Cursor
setClosureMonitor in interface Cursor<E>monitor - the monitor to use for detecting Cursor close events
protected final void checkNotClosed(java.lang.String operation)
throws java.lang.Exception
java.lang.Exceptionpublic final boolean isClosed()
Cursor
isClosed in interface Cursor<E>
public void close(java.lang.Exception cause)
throws java.lang.Exception
Cursor
close in interface Cursor<E>cause - exception thrown when this Cursor is accessed after close
java.lang.Exception - if for some reason this Cursor could not be closed
public void close()
throws java.lang.Exception
Cursor
close in interface Cursor<E>java.lang.Exception - if for some reason this Cursor could not be closedpublic java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||