public class ClusterServiceCoordinator extends Object implements AutoCloseable
| Constructor and Description |
|---|
ClusterServiceCoordinator(String workerId,
LeaderService leaderService,
Supplier<Boolean> isLeader) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(String taskName,
long interval,
Runnable task) |
void |
close() |
void |
start() |
public ClusterServiceCoordinator(String workerId, LeaderService leaderService, Supplier<Boolean> isLeader)
public void start()
public void close()
close in interface AutoCloseableCopyright © 2017–2021 Apache Software Foundation. All rights reserved.