Interface ResponseServer.ResponseHandler

Enclosing class:
ResponseServer

public static interface ResponseServer.ResponseHandler
Interface to manage callback from the response server onto a session.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onMessage(DirectBuffer buffer, int offset, int length, Header header, Publication responsePublication)
    Called when a message is received via the request subscription.
  • Method Details

    • onMessage

      boolean onMessage(DirectBuffer buffer, int offset, int length, Header header, Publication responsePublication)
      Called when a message is received via the request subscription.
      Parameters:
      buffer - containing the data.
      offset - at which the data begins.
      length - of the data in bytes.
      header - representing the metadata for the data.
      responsePublication - to send responses back to the client.
      Returns:
      true if the message was processed otherwise.