Class ClusterServiceCoordinator
java.lang.Object
org.apache.pulsar.functions.worker.ClusterServiceCoordinator
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionClusterServiceCoordinator(String workerId, LeaderService leaderService, Supplier<Boolean> isLeader) -
Method Summary
-
Constructor Details
-
ClusterServiceCoordinator
public ClusterServiceCoordinator(String workerId, LeaderService leaderService, Supplier<Boolean> isLeader)
-
-
Method Details
-
addTask
-
start
public void start() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-