T - Type of response promisedpublic class HbaseResponsePromise<T> extends io.netty.util.concurrent.DefaultPromise<T> implements ResponseHandler<T>
| Constructor and Description |
|---|
HbaseResponsePromise(io.netty.util.concurrent.EventExecutor executor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.io.IOException e)
Encountered failure
|
void |
onSuccess(T response)
Encountered success
|
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, checkDeadLock, executor, getNow, isCancellable, isCancelled, isDone, isSuccess, notifyListener, removeListener, removeListeners, setFailure, setSuccess, setUncancellable, sync, syncUninterruptibly, toString, toStringBuilder, tryFailure, trySuccesspublic HbaseResponsePromise(io.netty.util.concurrent.EventExecutor executor)
executor - for promisepublic void onSuccess(T response)
ResponseHandleronSuccess in interface ResponseHandler<T>response - on successpublic void onFailure(java.io.IOException e)
ResponseHandleronFailure in interface ResponseHandler<T>e - describing error