public final class InMemoryElectionRegistry extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Joins the leader election process of the given named group.
public org.apache.twill.common.Cancellable join(String name, org.apache.twill.api.ElectionHandler handler)
name- The group name for performing leader election
handler- The callback for acting on leader election events
Cancellableto withdraw from the process
Copyright © 2018 Cask Data, Inc.. All rights reserved.