Class ApiRequestReader
java.lang.Object
io.camunda.zeebe.broker.transport.adminapi.ApiRequestReader
- All Implemented Interfaces:
AsyncApiRequestHandler.RequestReader<AdminRequestDecoder>,BufferReader
public class ApiRequestReader
extends Object
implements AsyncApiRequestHandler.RequestReader<AdminRequestDecoder>
-
Constructor Details
-
ApiRequestReader
public ApiRequestReader()
-
-
Method Details
-
reset
public void reset()Description copied from interface:AsyncApiRequestHandler.RequestReaderReset all internal state to prepare for reading the next request.- Specified by:
resetin interfaceAsyncApiRequestHandler.RequestReader<AdminRequestDecoder>
-
getMessageDecoder
- Specified by:
getMessageDecoderin interfaceAsyncApiRequestHandler.RequestReader<AdminRequestDecoder>- Returns:
- The message decoder which can be used by
AsyncApiRequestHandlerimplementations to get access to the request data.
-
key
public long key() -
wrap
public void wrap(org.agrona.DirectBuffer buffer, int offset, int length) - Specified by:
wrapin interfaceAsyncApiRequestHandler.RequestReader<AdminRequestDecoder>- Specified by:
wrapin interfaceBufferReader- Parameters:
buffer- the buffer to read fromoffset- the offset at which to start readinglength- the length of the values to read
-