Class CommandApiResponseWriter
java.lang.Object
io.camunda.zeebe.broker.transport.commandapi.CommandApiResponseWriter
- All Implemented Interfaces:
ApiRequestHandler.ResponseWriter,BufferWriter
This is a no-op response writer. The reason for this is that the command API does not write a
response directly, instead it relies on the engine to eventually write the response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidreset()Resets all internal state to prepare for sending the next responsevoidtryWriteResponse(ServerOutput output, int partitionId, long requestId) Writes a successful response to theServerOutputvoidwrite(org.agrona.MutableDirectBuffer buffer, int offset)
-
Constructor Details
-
CommandApiResponseWriter
public CommandApiResponseWriter()
-
-
Method Details
-
tryWriteResponse
Description copied from interface:ApiRequestHandler.ResponseWriterWrites a successful response to theServerOutput- Specified by:
tryWriteResponsein interfaceApiRequestHandler.ResponseWriter- Parameters:
output- the underlyingServerOutputthat can be written to.partitionId- the current partition idrequestId- the current request id
-
reset
public void reset()Description copied from interface:ApiRequestHandler.ResponseWriterResets all internal state to prepare for sending the next response- Specified by:
resetin interfaceApiRequestHandler.ResponseWriter
-
getLength
public int getLength()- Specified by:
getLengthin interfaceBufferWriter
-
write
public void write(org.agrona.MutableDirectBuffer buffer, int offset) - Specified by:
writein interfaceBufferWriter
-