Class OCompletedFuture<T>
java.lang.Object
com.orientechnologies.common.thread.OCompletedFuture<T>
- All Implemented Interfaces:
Future<T>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OCompletedFuture
-
-
Method Details
-
isDone
public boolean isDone() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
get
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-