Package com.rabbitmq.client
Class MapRpcServer
java.lang.Object
com.rabbitmq.client.RpcServer
com.rabbitmq.client.MapRpcServer
Subclass of RpcServer which uses AMQP wire-format encoded tables as
requests and replies.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.rabbitmq.client.RpcServer
RpcServer.RpcConsumer
-
Constructor Summary
ConstructorDescriptionMapRpcServer
(Channel channel) MapRpcServer
(Channel channel, String queueName) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(byte[] requestBody) static byte[]
byte[]
handleCall
(byte[] requestBody, AMQP.BasicProperties replyProperties) Overridden to delegate to handleMapCall.void
handleCast
(byte[] requestBody) Overridden to delegate to handleMapCast.handleMapCall
(Map<String, Object> request) Default implementation override in subclasses.handleMapCall
(Map<String, Object> request, AMQP.BasicProperties replyProperties) Delegates tohandleMapCall(Map)
.void
handleMapCast
(Map<String, Object> requestBody) Default implementation override in subclasses.Methods inherited from class com.rabbitmq.client.RpcServer
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, postprocessReplyProperties, preprocessReplyProperties, processRequest, setupConsumer, terminateMainloop
-
Constructor Details
-
MapRpcServer
- Throws:
IOException
-
MapRpcServer
- Throws:
IOException
-
-
Method Details
-
handleCall
Overridden to delegate to handleMapCall.- Overrides:
handleCall
in classRpcServer
-
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
handleMapCall
public Map<String,Object> handleMapCall(Map<String, Object> request, AMQP.BasicProperties replyProperties) Delegates tohandleMapCall(Map)
. -
handleMapCall
Default implementation override in subclasses. Returns the empty string. -
handleCast
public void handleCast(byte[] requestBody) Overridden to delegate to handleMapCast.- Overrides:
handleCast
in classRpcServer
-
handleMapCast
Default implementation override in subclasses. Does nothing.
-