private static class ProcedureSyncWait.ProcedureFuture extends Object implements Future<byte[]>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasResult |
private Procedure<?> |
proc |
private ProcedureExecutor<MasterProcedureEnv> |
procExec |
private byte[] |
result |
| Constructor and Description |
|---|
ProcedureFuture(ProcedureExecutor<MasterProcedureEnv> procExec,
Procedure<?> proc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
byte[] |
get() |
byte[] |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
private final ProcedureExecutor<MasterProcedureEnv> procExec
private boolean hasResult
private byte[] result
public ProcedureFuture(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<?> proc)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<byte[]>public byte[] get() throws InterruptedException, ExecutionException
get in interface Future<byte[]>InterruptedExceptionExecutionExceptionpublic byte[] get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<byte[]>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.