public class MapRpcServer extends RpcServer
RpcServer.RpcConsumer
Constructor and Description |
---|
MapRpcServer(Channel channel) |
MapRpcServer(Channel channel,
String queueName) |
Modifier and Type | Method and 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.
|
void |
handleCast(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 to
handleMapCall(Map) . |
void |
handleMapCast(Map<String,Object> requestBody)
Default implementation override in subclasses.
|
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, postprocessReplyProperties, preprocessReplyProperties, processRequest, setupConsumer, terminateMainloop
public MapRpcServer(Channel channel) throws IOException
IOException
public MapRpcServer(Channel channel, String queueName) throws IOException
IOException
public byte[] handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)
handleCall
in class RpcServer
public static Map<String,Object> decode(byte[] requestBody) throws IOException
IOException
public static byte[] encode(Map<String,Object> reply) throws IOException
IOException
public Map<String,Object> handleMapCall(Map<String,Object> request, AMQP.BasicProperties replyProperties)
handleMapCall(Map)
.public Map<String,Object> handleMapCall(Map<String,Object> request)
public void handleCast(byte[] requestBody)
handleCast
in class RpcServer
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.