Package io.camunda.zeebe.transport
Interface RequestHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonRequest(ServerOutput serverOutput, int partitionId, long requestId, org.agrona.DirectBuffer buffer, int offset, int length) Called on new request on given partition.
-
Method Details
-
onRequest
void onRequest(ServerOutput serverOutput, int partitionId, long requestId, org.agrona.DirectBuffer buffer, int offset, int length) Called on new request on given partition.- Parameters:
serverOutput- output to write the responsepartitionId- the corresponding partition idrequestId- the id of the request which should be handledbuffer- the buffer which contains the requestoffset- the offset in the request bufferlength- the length of the request buffer
-