public interface ClosureMonitor
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.Exception cause)
Sets monitor state to closed, and sets the cause to a specific
Exception.
|
void |
close(java.lang.String cause)
Sets monitor state to closed, and sets the cause to a
CursorClosedException with a specific error message string.
|
java.lang.Exception |
getCause()
Gets the cause of the closure.
|
boolean |
isClosed()
Gets whether the state of this ClosureMonitor is set to closed.
|
void close()
void close(java.lang.String cause)
cause - error message stringvoid close(java.lang.Exception cause)
cause - the exception to associate with the closureboolean isClosed()
void checkNotClosed()
throws CursorClosedException
CursorClosedException - the cause of the closurejava.lang.Exception getCause()