|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - Type of object returned by Future.get() or result().public interface FutureQuery<V>
The result of a Coverage Database query executed in a background
thread. This interface extends the standard Future interface with convenience methods.
| coverage/geotk-coverage-sql (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
invokeAfterCompletion(Runnable task)
Invokes the given task upon completion of this FutureQuery. |
V |
result()
Convenience method which block until the result is available, or throw the appropriate exception otherwise. |
| Methods inherited from interface Future |
|---|
cancel, get, get, isCancelled, isDone |
| Method Detail |
|---|
V result()
throws DatabaseVetoException,
CoverageStoreException,
CancellationException
DatabaseVetoException - If a listener
vetoed against the operation.
CoverageStoreException - If an error occurred while executing the task.
CancellationException - if the computation was canceled.void invokeAfterCompletion(Runnable task)
FutureQuery. If this
FutureQuery is already completed, then the given
task is executed immediately in the current thread. Otherwise this method returns
immediately, and the given task will be executed in this FutureQuery thread
after the query has completed either.
The given task is executed exactly once, either on success or failure.
task - The task to execute after completion of this FutureQuery.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||