@InterfaceAudience.Private public class AsyncCall extends io.netty.util.concurrent.DefaultPromise<com.google.protobuf.Message>
Modifier and Type | Field and Description |
---|---|
(package private) MetricsConnection.CallStats |
callStats |
(package private) PayloadCarryingRpcController |
controller |
(package private) int |
id |
private static org.apache.commons.logging.Log |
LOG |
(package private) com.google.protobuf.Descriptors.MethodDescriptor |
method |
(package private) com.google.protobuf.Message |
param |
(package private) com.google.protobuf.Message |
responseDefaultType |
(package private) long |
rpcTimeout |
(package private) long |
startTime |
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,
MetricsConnection.CallStats callStats)
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
private static final org.apache.commons.logging.Log LOG
final int id
final com.google.protobuf.Descriptors.MethodDescriptor method
final com.google.protobuf.Message param
final PayloadCarryingRpcController controller
final com.google.protobuf.Message responseDefaultType
final long startTime
final long rpcTimeout
final MetricsConnection.CallStats callStats
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, MetricsConnection.CallStats callStats)
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–2019 The Apache Software Foundation. All rights reserved.