Package io.camunda.zeebe.transport
Interface ServerTransport
- All Superinterfaces:
AutoCloseable,ServerOutput
- All Known Implementing Classes:
AtomixServerTransport
-
Method Summary
Modifier and TypeMethodDescriptionsubscribe(int partitionId, RequestType requestType, RequestHandler requestHandler) Subscribes to the given partition and call's the given handler on each new request of the given type.unsubscribe(int partitionId, RequestType requestType) Unsubscribe from the given partition, the registered handler will no longer be called on new requests.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface io.camunda.zeebe.transport.ServerOutput
sendResponse
-
Method Details
-
subscribe
ActorFuture<Void> subscribe(int partitionId, RequestType requestType, RequestHandler requestHandler) Subscribes to the given partition and call's the given handler on each new request of the given type.- Parameters:
partitionId- the partition, for which should be subscribedrequestType- the type of request that should be handledrequestHandler- the handler which should be called.
-
unsubscribe
Unsubscribe from the given partition, the registered handler will no longer be called on new requests.- Parameters:
partitionId- the partition, from which we should unsubscriberequestType-
-