Add will set requested dependencies on the component, and cause the component to be started when Start is called. Depending on if a Runnable implements LeaderElectionRunnable interface, a Runnable can be run in either non-leaderelection mode (always running) or leader election mode (managed by leade
(Runnable)
| 60 | // Depending on if a Runnable implements LeaderElectionRunnable interface, a Runnable can be run in either |
| 61 | // non-leaderelection mode (always running) or leader election mode (managed by leader election if enabled). |
| 62 | Add(Runnable) error |
| 63 | |
| 64 | // Elected is closed when this manager is elected leader of a group of |
| 65 | // managers, either because it won a leader election or because no leader |
no outgoing calls