Interface ClientStreamService<M extends BufferWriter>
- Type Parameters:
M- the type of the streaming metadata
- All Superinterfaces:
AsyncClosable
- All Known Implementing Classes:
ClientStreamServiceImpl
Manages an instance of
ClientStreamer. Intended to be the main entry point when setting
up the client side for remote streams, primarily via TransportFactory.createRemoteStreamClient(ClusterCommunicationService, ClientStreamMetrics).-
Method Summary
Modifier and TypeMethodDescriptionvoidonServerJoined(MemberId memberId) A callback to be invoked when a new streaming server is added.voidonServerRemoved(MemberId memberId) A callback to be invoked when a new streaming server is removed.start(ActorSchedulingService schedulingService) Starts the service, optionally with the given actor scheduling service.streamer()Returns the managedClientStreamerassociated with this service.Returns theClientStreamassociated with this IDstreams()Returns all registered client streams.Methods inherited from interface io.camunda.zeebe.scheduler.AsyncClosable
closeAsync
-
Method Details
-
start
Starts the service, optionally with the given actor scheduling service. Assumes the scheduling service is already running. -
onServerJoined
A callback to be invoked when a new streaming server is added. Implementations should be idempotent. -
onServerRemoved
A callback to be invoked when a new streaming server is removed. Implementations should be idempotent. -
streamer
ClientStreamer<M> streamer()Returns the managedClientStreamerassociated with this service. -
streamFor
Returns theClientStreamassociated with this ID -
streams
ActorFuture<Collection<ClientStream<M>>> streams()Returns all registered client streams.
-