protected class SubExecutorService.CallableTask<V> extends Object implements SubExecutorService.Task<V>
Constructor and Description |
---|
CallableTask(Callable callable,
boolean unregister) |
Modifier and Type | Method and Description |
---|---|
void |
acquireExecution() |
V |
call() |
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
Future<V> |
getFuture() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
releaseExecution() |
void |
run() |
void |
setFuture(Future<V> future) |
public CallableTask(Callable callable, boolean unregister)
public Future<V> getFuture()
getFuture
in interface SubExecutorService.Task<V>
public void setFuture(Future<V> future)
setFuture
in interface SubExecutorService.Task<V>
public void acquireExecution()
acquireExecution
in interface SubExecutorService.Task<V>
public void releaseExecution()
releaseExecution
in interface SubExecutorService.Task<V>
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
Copyright © 2009–2020 OrientDB. All rights reserved.