T
- command response typepublic class SimpleFuture<T> extends SimpleCommandResponse<T> implements Future<T>
Future
implementation for synchronous responses.Constructor and Description |
---|
SimpleFuture(T value) |
SimpleFuture(Throwable exception) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
get
public SimpleFuture(T value)
public SimpleFuture(Throwable exception)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<T>
public T get(long timeout, TimeUnit unit) throws ExecutionException
get
in interface Future<T>
ExecutionException
Copyright © 2016 JBoss by Red Hat. All rights reserved.