Package com.rabbitmq.client
Class MapRpcServer
- java.lang.Object
- 
- com.rabbitmq.client.RpcServer
- 
- com.rabbitmq.client.MapRpcServer
 
 
- 
 public class MapRpcServer extends RpcServer Subclass of RpcServer which uses AMQP wire-format encoded tables as requests and replies.
- 
- 
Constructor SummaryConstructors Constructor Description MapRpcServer(Channel channel)MapRpcServer(Channel channel, String queueName)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>decode(byte[] requestBody)static byte[]encode(Map<String,Object> reply)byte[]handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)Overridden to delegate to handleMapCall.voidhandleCast(byte[] requestBody)Overridden to delegate to handleMapCast.Map<String,Object>handleMapCall(Map<String,Object> request)Default implementation override in subclasses.Map<String,Object>handleMapCall(Map<String,Object> request, AMQP.BasicProperties replyProperties)Delegates tohandleMapCall(Map).voidhandleMapCast(Map<String,Object> requestBody)Default implementation override in subclasses.- 
Methods inherited from class com.rabbitmq.client.RpcServerclose, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, postprocessReplyProperties, preprocessReplyProperties, processRequest, setupConsumer, terminateMainloop
 
- 
 
- 
- 
- 
Constructor Detail- 
MapRpcServerpublic MapRpcServer(Channel channel) throws IOException - Throws:
- IOException
 
 - 
MapRpcServerpublic MapRpcServer(Channel channel, String queueName) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
handleCallpublic byte[] handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)Overridden to delegate to handleMapCall.- Overrides:
- handleCallin class- RpcServer
 
 - 
decodepublic static Map<String,Object> decode(byte[] requestBody) throws IOException - Throws:
- IOException
 
 - 
encodepublic static byte[] encode(Map<String,Object> reply) throws IOException - Throws:
- IOException
 
 - 
handleMapCallpublic Map<String,Object> handleMapCall(Map<String,Object> request, AMQP.BasicProperties replyProperties) Delegates tohandleMapCall(Map).
 - 
handleMapCallpublic Map<String,Object> handleMapCall(Map<String,Object> request) Default implementation override in subclasses. Returns the empty string.
 - 
handleCastpublic void handleCast(byte[] requestBody) Overridden to delegate to handleMapCast.- Overrides:
- handleCastin class- RpcServer
 
 
- 
 
-