Package io.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.
@FunctionalInterface public interface RequestHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onRequest(ServerOutput serverOutput, int partitionId, long requestId, org.agrona.DirectBuffer buffer, int offset, int length)
Called on new request on given partition.
-
-
-
Method Detail
-
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
-
-