@InterfaceAudience.Private public class AsyncCall extends io.netty.util.concurrent.DefaultPromise<com.google.protobuf.Message>
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
AsyncCall(io.netty.channel.EventLoop eventLoop,
int connectId,
com.google.protobuf.Descriptors.MethodDescriptor md,
com.google.protobuf.Message param,
PayloadCarryingRpcController controller,
com.google.protobuf.Message responseDefaultType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getRpcTimeout()
Get the rpc timeout
|
long |
getStartTime()
Get the start time
|
void |
setFailed(IOException exception)
Set failed
|
void |
setSuccess(com.google.protobuf.Message value,
CellScanner cellBlockScanner)
Set success with a cellBlockScanner
|
String |
toString() |
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, toStringBuilder, tryFailure, trySuccess
public AsyncCall(io.netty.channel.EventLoop eventLoop, int connectId, com.google.protobuf.Descriptors.MethodDescriptor md, com.google.protobuf.Message param, PayloadCarryingRpcController controller, com.google.protobuf.Message responseDefaultType)
eventLoop
- for callconnectId
- connection idmd
- the method descriptorparam
- parameters to send to Servercontroller
- controller for responseresponseDefaultType
- the default response typepublic long getStartTime()
public String toString()
toString
in class io.netty.util.concurrent.DefaultPromise<com.google.protobuf.Message>
public void setSuccess(com.google.protobuf.Message value, CellScanner cellBlockScanner)
value
- to setcellBlockScanner
- to setpublic void setFailed(IOException exception)
exception
- to setpublic long getRpcTimeout()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.