public class RPCContext extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected Exception | 
error  | 
protected Map<String,ByteBuffer> | 
requestCallMeta  | 
protected Object | 
response  | 
protected Map<String,ByteBuffer> | 
responseCallMeta  | 
| Constructor and Description | 
|---|
RPCContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
Exception | 
error()
The exception generated at the server, or null if no such exception has
 occurred 
 | 
HandshakeRequest | 
getHandshakeRequest()
Get the handshake request of this RPC. 
 | 
HandshakeResponse | 
getHandshakeResponse()
Get the handshake response of this RPC. 
 | 
Protocol.Message | 
getMessage()
Returns the  
Protocol.Message corresponding to this RPC | 
List<ByteBuffer> | 
getRequestPayload()
Returns the serialized payload of the request in this RPC. 
 | 
List<ByteBuffer> | 
getResponsePayload()
Returns the serialized payload of the response in this RPC. 
 | 
boolean | 
isError()
Indicates whether an exception was generated at the server 
 | 
Map<String,ByteBuffer> | 
requestCallMeta()
This is an access method for the per-call state provided by the client to the
 server. 
 | 
Map<String,ByteBuffer> | 
requestHandshakeMeta()
This is an access method for the handshake state provided by the client to
 the server. 
 | 
Object | 
response()
The response object generated at the server, if it exists. 
 | 
Map<String,ByteBuffer> | 
responseCallMeta()
This is an access method for the per-call state provided by the server back
 to the client. 
 | 
Map<String,ByteBuffer> | 
responseHandshakeMeta()
This is an access method for the handshake state provided by the server back
 to the client 
 | 
void | 
setHandshakeRequest(HandshakeRequest handshakeRequest)
Set the handshake request of this RPC. 
 | 
void | 
setHandshakeResponse(HandshakeResponse handshakeResponse)
Set the handshake response of this RPC. 
 | 
void | 
setMessage(Protocol.Message message)
Sets the  
Protocol.Message corresponding to this RPC | 
void | 
setRequestPayload(List<ByteBuffer> payload)
Sets the serialized payload of the request in this RPC. 
 | 
void | 
setResponsePayload(List<ByteBuffer> payload)
Sets the serialized payload of the response in this RPC. 
 | 
protected Map<String,ByteBuffer> requestCallMeta
protected Map<String,ByteBuffer> responseCallMeta
protected Object response
protected Exception error
public void setHandshakeRequest(HandshakeRequest handshakeRequest)
public HandshakeRequest getHandshakeRequest()
public void setHandshakeResponse(HandshakeResponse handshakeResponse)
public HandshakeResponse getHandshakeResponse()
public Map<String,ByteBuffer> requestHandshakeMeta()
public Map<String,ByteBuffer> responseHandshakeMeta()
public Map<String,ByteBuffer> requestCallMeta()
public Map<String,ByteBuffer> responseCallMeta()
public Object response()
public Exception error()
public boolean isError()
public void setMessage(Protocol.Message message)
Protocol.Message corresponding to this RPCpublic Protocol.Message getMessage()
Protocol.Message corresponding to this RPCProtocol.Messagepublic void setRequestPayload(List<ByteBuffer> payload)
public List<ByteBuffer> getRequestPayload()
public List<ByteBuffer> getResponsePayload()
public void setResponsePayload(List<ByteBuffer> payload)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.