public class MapRpcServer extends RpcServer
| Constructor and Description |
|---|
MapRpcServer(Channel channel) |
MapRpcServer(Channel channel,
java.lang.String queueName) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
decode(byte[] requestBody) |
static byte[] |
encode(java.util.Map<java.lang.String,java.lang.Object> reply) |
byte[] |
handleCall(byte[] requestBody,
AMQP.BasicProperties replyProperties)
Overridden to delegate to handleMapCall.
|
void |
handleCast(byte[] requestBody)
Overridden to delegate to handleMapCast.
|
java.util.Map<java.lang.String,java.lang.Object> |
handleMapCall(java.util.Map<java.lang.String,java.lang.Object> request)
Default implementation - override in subclasses.
|
java.util.Map<java.lang.String,java.lang.Object> |
handleMapCall(java.util.Map<java.lang.String,java.lang.Object> request,
AMQP.BasicProperties replyProperties)
Delegates to handleMapCall(Map
|
void |
handleMapCast(java.util.Map<java.lang.String,java.lang.Object> requestBody)
Default implementation - override in subclasses.
|
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, processRequest, setupConsumer, terminateMainlooppublic MapRpcServer(Channel channel) throws java.io.IOException
java.io.IOExceptionpublic MapRpcServer(Channel channel, java.lang.String queueName) throws java.io.IOException
java.io.IOExceptionpublic byte[] handleCall(byte[] requestBody,
AMQP.BasicProperties replyProperties)
handleCall in class RpcServerpublic static java.util.Map<java.lang.String,java.lang.Object> decode(byte[] requestBody)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] encode(java.util.Map<java.lang.String,java.lang.Object> reply)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Object> handleMapCall(java.util.Map<java.lang.String,java.lang.Object> request,
AMQP.BasicProperties replyProperties)
public java.util.Map<java.lang.String,java.lang.Object> handleMapCall(java.util.Map<java.lang.String,java.lang.Object> request)
public void handleCast(byte[] requestBody)
handleCast in class RpcServerpublic void handleMapCast(java.util.Map<java.lang.String,java.lang.Object> requestBody)