Class BackupApiResponseWriter
java.lang.Object
io.camunda.zeebe.broker.transport.backupapi.BackupApiResponseWriter
- All Implemented Interfaces:
AsyncApiRequestHandler.ResponseWriter,BufferWriter
public final class BackupApiResponseWriter
extends Object
implements AsyncApiRequestHandler.ResponseWriter
-
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
-
BackupApiResponseWriter
public BackupApiResponseWriter()
-
-
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
-