Interface RpcServer.Context

Enclosing interface:
RpcServer

public static interface RpcServer.Context
Request processing context.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a message meant to be published by the underlying publisher instance.
    message(byte[] body)
    Create a message meant to be published by the underlying publisher instance.
  • 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

      Message message(byte[] body)
      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