public class RPC<V extends DTask> extends Object implements Future<V>, Delayed, ForkJoinPool.ManagedBlocker
| Modifier and Type | Class and Description |
|---|---|
static class |
RPC.RPCCall |
| Modifier and Type | Field and Description |
|---|---|
int |
_callCnt |
| Modifier and Type | Method and Description |
|---|---|
RPC<V> |
addCompleter(H2O.H2OCountedCompleter task) |
boolean |
block()
Possibly blocks the current thread, for example waiting for
a lock or condition.
|
RPC<V> |
call() |
static <DT extends DTask> |
call(H2ONode target,
DT dtask) |
boolean |
cancel(boolean mayInterruptIfRunning) |
int |
compareTo(Delayed t) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
long |
getDelay(TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isReleasable()
Returns
true if blocking is unnecessary. |
protected int |
response(AutoBuffer ab) |
H2ONode |
target() |
DTask |
task() |
int |
taskNum() |
public boolean isReleasable()
ForkJoinPool.ManagedBlockertrue if blocking is unnecessary.isReleasable in interface ForkJoinPool.ManagedBlockerpublic boolean block()
throws InterruptedException
ForkJoinPool.ManagedBlockerblock in interface ForkJoinPool.ManagedBlockertrue if no additional blocking is necessary
(i.e., if isReleasable would return true)InterruptedException - if interrupted while waiting
(the method is not required to do so, but is allowed to)public final boolean isCancelled()
isCancelled in interface Future<V extends DTask>public final boolean cancel(boolean mayInterruptIfRunning)
protected int response(AutoBuffer ab)
public RPC<V> addCompleter(H2O.H2OCountedCompleter task)
public final int compareTo(Delayed t)
compareTo in interface Comparable<Delayed>public final DTask task()
public final int taskNum()
public final H2ONode target()
Copyright © 2013–2014 0xdata. All rights reserved.