|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 per-session and per-call metadata.
Field Summary | |
---|---|
protected AvroRemoteException |
error
|
protected Map<Utf8,ByteBuffer> |
requestCallMeta
|
protected Map<Utf8,ByteBuffer> |
requestSessionMeta
|
protected Object |
response
|
protected Map<Utf8,ByteBuffer> |
responseCallMeta
|
protected Map<Utf8,ByteBuffer> |
responseSessionMeta
|
Constructor Summary | |
---|---|
RPCContext()
|
Method Summary | |
---|---|
AvroRemoteException |
error()
The exception generated at the server, or null if no such exception has occured |
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> |
requestSessionMeta()
This is an access method for the session 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> |
responseSessionMeta()
This is an access method for the session state provided by the server back to the client |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<Utf8,ByteBuffer> requestSessionMeta
protected Map<Utf8,ByteBuffer> responseSessionMeta
protected Map<Utf8,ByteBuffer> requestCallMeta
protected Map<Utf8,ByteBuffer> responseCallMeta
protected Object response
protected AvroRemoteException error
Constructor Detail |
---|
public RPCContext()
Method Detail |
---|
public Map<Utf8,ByteBuffer> requestSessionMeta()
public Map<Utf8,ByteBuffer> responseSessionMeta()
public Map<Utf8,ByteBuffer> requestCallMeta()
public Map<Utf8,ByteBuffer> responseCallMeta()
public Object response()
public AvroRemoteException error()
public boolean isError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |