com.rabbitmq.client
public class StringRpcServer extends RpcServer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STRING_ENCODING |
Constructor and Description |
---|
StringRpcServer(Channel channel) |
StringRpcServer(Channel channel,
java.lang.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.
|
java.lang.String |
handleStringCall(java.lang.String request)
Default implementation - override in subclasses.
|
java.lang.String |
handleStringCall(java.lang.String request,
AMQP.BasicProperties replyProperties)
Delegates to handleStringCall(String).
|
void |
handleStringCast(java.lang.String requestBody)
Default implementation - override in subclasses.
|
close, getChannel, getQueueName, handleCall, handleCall, handleCast, handleCast, mainloop, processRequest, setupConsumer, terminateMainloop
public StringRpcServer(Channel channel) throws java.io.IOException
java.io.IOException
public StringRpcServer(Channel channel, java.lang.String queueName) throws java.io.IOException
java.io.IOException
public byte[] handleCall(byte[] requestBody, AMQP.BasicProperties replyProperties)
handleCall
in class RpcServer
public java.lang.String handleStringCall(java.lang.String request, AMQP.BasicProperties replyProperties)
public java.lang.String handleStringCall(java.lang.String request)
public void handleCast(byte[] requestBody)
handleCast
in class RpcServer
public void handleStringCast(java.lang.String requestBody)