Package com.rabbitmq.client.amqp
Interface RpcServer.Context
- Enclosing interface:
RpcServer
public static interface RpcServer.Context
Request processing context.
-
Method Summary
-
Method Details
-
message
Message message()Create a message meant to be published by the underlying publisher instance.Once returned in the
RpcServer.Handler.handle(Context, Message)
the message instance should be not be modified or even reused.- Returns:
- a message
-
message
Create a message meant to be published by the underlying publisher instance.Once returned in the
RpcServer.Handler.handle(Context, Message)
the message instance should be not be modified or even reused.- Parameters:
body
- message body- Returns:
- a message with the provided body
-