Interface RequestHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RequestHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRequest(ServerOutput serverOutput, int partitionId, long requestId, org.agrona.DirectBuffer buffer, int offset, int length)
    Called on new request on given partition.
  • Method Details

    • onRequest

      void onRequest(ServerOutput serverOutput, int partitionId, long requestId, org.agrona.DirectBuffer buffer, int offset, int length)
      Called on new request on given partition.
      Parameters:
      serverOutput - output to write the response
      partitionId - the corresponding partition id
      requestId - the id of the request which should be handled
      buffer - the buffer which contains the request
      offset - the offset in the request buffer
      length - the length of the request buffer