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.
-
Constructor Summary
ConstructorsConstructorDescriptionMapRpcServer(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.voidhandleCast(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 to handleMapCall(Mapinvalid input: '<'String, Object>).voidhandleMapCast(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, processRequest, setupConsumer, terminateMainloop
-
Constructor Details
-
MapRpcServer
- Throws:
IOException
-
MapRpcServer
- Throws:
IOException
-
-
Method Details
-
handleCall
Overridden to delegate to handleMapCall.- Overrides:
handleCallin classRpcServer
-
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
handleMapCall
public Map<String,Object> handleMapCall(Map<String, Object> request, AMQP.BasicProperties replyProperties) Delegates to handleMapCall(Mapinvalid input: '<'String, Object>). -
handleMapCall
Default implementation - override in subclasses. Returns the empty string. -
handleCast
public void handleCast(byte[] requestBody) Overridden to delegate to handleMapCast.- Overrides:
handleCastin classRpcServer
-
handleMapCast
Default implementation - override in subclasses. Does nothing.
-