public interface FutureQuery<V> extends Future<V>
Futureinterface with convenience methods.
Defined in the
|Modifier and Type||Method and Description|
Invokes the given task upon completion of this
Convenience method which block until the result is available, or throw the appropriate exception otherwise.
V result() throws DatabaseVetoException, CoverageStoreException, CancellationException
void invokeAfterCompletion(Runnable task)
FutureQuery. If this
FutureQueryis 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
FutureQuerythread 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
Copyright © 2009–2017 Geotoolkit.org. All rights reserved.