public interface LeaderDecider
Modifier and Type | Method and Description |
---|---|
Boolean |
isLeader(String workerId)
Method invoked to check the given workerId corresponds to one of the workers
designated to execute shard-syncs periodically.
|
void |
shutdown()
Can be invoked, if needed, to shutdown any clients/thread-pools
being used in the LeaderDecider implementation.
|
Boolean isLeader(String workerId)
workerId
- ID of the workervoid shutdown()
Copyright © 2021. All rights reserved.