Interface Controller.CustomResponse<RESPONSE>

Type Parameters:
RESPONSE - The type of message that the respopnse contains. Must be a protobuf message type.
Enclosing interface:
Controller

public static interface Controller.CustomResponse<RESPONSE>
A simple interface that describes the nature of the response to the custom incoming message.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBuf[]
    The optional unstructured portion of the message.
    The structured portion of the response.
  • Method Details

    • getMessage

      RESPONSE getMessage()
      The structured portion of the response.
      Returns:
      A protobuf message of type RESPONSE
    • getBodies

      io.netty.buffer.ByteBuf[] getBodies()
      The optional unstructured portion of the message.
      Returns:
      null or one or more unstructured bodies.