Class CommandApiResponseWriter
java.lang.Object
io.camunda.zeebe.broker.transport.commandapi.CommandApiResponseWriter
- All Implemented Interfaces:
AsyncApiRequestHandler.ResponseWriter,BufferWriter
public class CommandApiResponseWriter
extends Object
implements AsyncApiRequestHandler.ResponseWriter
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:AsyncApiRequestHandler.ResponseWriterWrites a successful response to theServerOutput- Specified by:
tryWriteResponsein interfaceAsyncApiRequestHandler.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:AsyncApiRequestHandler.ResponseWriterResets all internal state to prepare for sending the next response- Specified by:
resetin interfaceAsyncApiRequestHandler.ResponseWriter
-
getLength
public int getLength()- Specified by:
getLengthin interfaceBufferWriter
-
write
public void write(org.agrona.MutableDirectBuffer buffer, int offset) - Specified by:
writein interfaceBufferWriter
-