Class JobStreamClientImpl
java.lang.Object
io.camunda.zeebe.gateway.impl.stream.JobStreamClientImpl
- All Implemented Interfaces:
BrokerTopologyListener,JobStreamClient,CloseableSilently,AutoCloseable
A thin adapter around a
ClientStreamService instance specifically for streaming jobs.
It's intended to be the main entry point when setting up the client side of job streaming in the
gateway.
NOTE: most methods are synchronized to avoid dealing with concurrency issues with startup/shutdown, and that's not on any hot path. Can be reconsidered if this is not true anymore, or not the only constraint.
-
Constructor Summary
ConstructorsConstructorDescriptionJobStreamClientImpl(ActorSchedulingService schedulingService, ClusterCommunicationService clusterCommunicationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidbrokerAdded(MemberId memberId) voidbrokerRemoved(MemberId memberId) voidclose()list()Returns the list of registered job streamsstart()Asynchronously starts the job stream client.streamer()Returns the underlying job streamer.
-
Constructor Details
-
JobStreamClientImpl
public JobStreamClientImpl(ActorSchedulingService schedulingService, ClusterCommunicationService clusterCommunicationService)
-
-
Method Details
-
brokerAdded
- Specified by:
brokerAddedin interfaceBrokerTopologyListener
-
brokerRemoved
- Specified by:
brokerRemovedin interfaceBrokerTopologyListener
-
streamer
Description copied from interface:JobStreamClientReturns the underlying job streamer.- Specified by:
streamerin interfaceJobStreamClient
-
start
Description copied from interface:JobStreamClientAsynchronously starts the job stream client.- Specified by:
startin interfaceJobStreamClient
-
list
Description copied from interface:JobStreamClientReturns the list of registered job streams- Specified by:
listin interfaceJobStreamClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableSilently
-