Interface AsyncApiRequestHandler.ResponseWriter

All Superinterfaces:
BufferWriter
All Known Implementing Classes:
ApiResponseWriter, BackupApiResponseWriter, CommandApiResponseWriter, QueryResponseWriter
Enclosing class:
AsyncApiRequestHandler<R extends AsyncApiRequestHandler.RequestReader<?>,W extends AsyncApiRequestHandler.ResponseWriter>

public static interface AsyncApiRequestHandler.ResponseWriter extends BufferWriter
Extension of BufferWriter that provides extra methods used by AsyncApiRequestHandler implementations
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets all internal state to prepare for sending the next response
    void
    tryWriteResponse(ServerOutput output, int partitionId, long requestId)
    Writes a successful response to the ServerOutput

    Methods inherited from interface io.camunda.zeebe.util.buffer.BufferWriter

    getLength, write
  • Method Details

    • tryWriteResponse

      void tryWriteResponse(ServerOutput output, int partitionId, long requestId)
      Writes a successful response to the ServerOutput
      Parameters:
      output - the underlying ServerOutput that can be written to.
      partitionId - the current partition id
      requestId - the current request id
    • reset

      void reset()
      Resets all internal state to prepare for sending the next response