|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avro.ipc.RPCContext
public class RPCContext
This class represents the context of an RPC call or RPC handshake. Designed to provide information to RPC plugin writers, this class encapsulates information about the rpc exchange, including handshake and call metadata.
Field Summary | |
---|---|
protected Exception |
error
|
protected Map<Utf8,ByteBuffer> |
requestCallMeta
|
protected Map<Utf8,ByteBuffer> |
requestHandshakeMeta
|
protected Object |
response
|
protected Map<Utf8,ByteBuffer> |
responseCallMeta
|
protected Map<Utf8,ByteBuffer> |
responseHandshakeMeta
|
Constructor Summary | |
---|---|
RPCContext()
|
Method Summary | |
---|---|
Exception |
error()
The exception generated at the server, or null if no such exception has occured |
Protocol.Message |
getMessage()
|
boolean |
isError()
Indicates whether an exception was generated at the server |
Map<Utf8,ByteBuffer> |
requestCallMeta()
This is an access method for the per-call state provided by the client to the server. |
Map<Utf8,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<Utf8,ByteBuffer> |
responseCallMeta()
This is an access method for the per-call state provided by the server back to the client. |
Map<Utf8,ByteBuffer> |
responseHandshakeMeta()
This is an access method for the handshake state provided by the server back to the client |
void |
setMessage(Protocol.Message message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<Utf8,ByteBuffer> requestHandshakeMeta
protected Map<Utf8,ByteBuffer> responseHandshakeMeta
protected Map<Utf8,ByteBuffer> requestCallMeta
protected Map<Utf8,ByteBuffer> responseCallMeta
protected Object response
protected Exception error
Constructor Detail |
---|
public RPCContext()
Method Detail |
---|
public Map<Utf8,ByteBuffer> requestHandshakeMeta()
public Map<Utf8,ByteBuffer> responseHandshakeMeta()
public Map<Utf8,ByteBuffer> requestCallMeta()
public Map<Utf8,ByteBuffer> responseCallMeta()
public Object response()
public Exception error()
public boolean isError()
public void setMessage(Protocol.Message message)
public Protocol.Message getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |