public class StringRpcServer extends RpcServer
RpcServer.RpcConsumer
Modifier and Type | Field and Description |
---|---|
static String |
STRING_ENCODING |
Constructor and Description |
---|
StringRpcServer(Channel channel) |
StringRpcServer(Channel channel,
String queueName) |
Modifier and Type | Method and Description |
---|---|
byte[] |
handleCall(byte[] requestBody,
AMQP.BasicProperties replyProperties)
Overridden to do UTF-8 processing, and delegate to
handleStringCall.
|
void |
handleCast(byte[] requestBody)
Overridden to do UTF-8 processing, and delegate to
handleStringCast.
|
String |
handleStringCall(String request)
Default implementation - override in subclasses.
|
String |
handleStringCall(String request,
AMQP.BasicProperties replyProperties)
Delegates to handleStringCall(String).
|
void |
handleStringCast(String requestBody)
Default implementation - override in subclasses.
|
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, postprocessReplyProperties, preprocessReplyProperties, processRequest, setupConsumer, terminateMainloop
public static final String STRING_ENCODING
public StringRpcServer(Channel channel) throws IOException
IOException
public StringRpcServer(Channel channel, String queueName) throws IOException
IOException
public byte[] handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)
handleCall
in class RpcServer
public String handleStringCall(String request, AMQP.BasicProperties replyProperties)
public String handleStringCall(String request)
public void handleCast(byte[] requestBody)
handleCast
in class RpcServer
public void handleStringCast(String requestBody)
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.