Class DropResult
java.lang.Object
se.conciliate.extensions.datatransfer.DropResult
Support class for
DropImport
. This is a default, bare bones implementation
of a Future
that can be used by DropImport's that do not start lengthy
operations on new threads. Note however that this class must not be used
in circumstances where lenghty operations and threads are involved as it
is not thread safe or cancellable.- Author:
- Per-Erik
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DropResult
public DropResult(boolean result)
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<Boolean>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<Boolean>
- Throws:
InterruptedException
ExecutionException
-
get
public Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<Boolean>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-