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>
Extension of
BufferWriter that provides extra methods used by AsyncApiRequestHandler implementations-
Method Summary
Modifier and TypeMethodDescriptionvoidreset()Resets all internal state to prepare for sending the next responsevoidtryWriteResponse(ServerOutput output, int partitionId, long requestId) Writes a successful response to theServerOutputMethods inherited from interface io.camunda.zeebe.util.buffer.BufferWriter
getLength, write
-
Method Details
-
tryWriteResponse
Writes a successful response to theServerOutput- Parameters:
output- the underlyingServerOutputthat can be written to.partitionId- the current partition idrequestId- the current request id
-
reset
void reset()Resets all internal state to prepare for sending the next response
-