|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClosureMonitor
A monitor used by Cursors to detect conditions when they should stop performing some work during advance operations such as next(), previous(), first() etc, and release resources.
| Method Summary | |
|---|---|
void |
checkNotClosed()
Checks if state of this ClosureMonitor is set to closed and if so, throws the causing Exception. |
void |
close()
Sets monitor state to closed, and sets the cause to a CursorClosedException without an error message string. |
void |
close(Exception cause)
Sets monitor state to closed, and sets the cause to a specific Exception. |
void |
close(String cause)
Sets monitor state to closed, and sets the cause to a CursorClosedException with a specific error message string. |
Exception |
getCause()
Gets the cause of the closure. |
boolean |
isClosed()
Gets whether the state of this ClosureMonitor is set to closed. |
| Method Detail |
|---|
void close()
void close(String cause)
cause - error message stringvoid close(Exception cause)
cause - the exception to associate with the closureboolean isClosed()
void checkNotClosed()
throws CursorClosedException
CursorClosedException - the cause of the closureException getCause()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||