com.rabbitmq.client
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, terminateMainloop
public MapRpcServer(Channel channel) throws java.io.IOException
java.io.IOException
public MapRpcServer(Channel channel, java.lang.String queueName) throws java.io.IOException
java.io.IOException
public byte[] handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)
handleCall
in class RpcServer
public static java.util.Map<java.lang.String,java.lang.Object> decode(byte[] requestBody) throws java.io.IOException
java.io.IOException
public static byte[] encode(java.util.Map<java.lang.String,java.lang.Object> reply) throws java.io.IOException
java.io.IOException
public 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 RpcServer
public void handleMapCast(java.util.Map<java.lang.String,java.lang.Object> requestBody)