Package | Description |
---|---|
org.apache.twill.api |
Classes in this package provides core functionality of the Twill library.
|
org.apache.twill.internal |
This package provides internal classes for Twill.
|
Modifier and Type | Method and Description |
---|---|
Cancellable |
TwillContext.electLeader(String name,
ElectionHandler participantHandler)
Register to participate in a leader election by instances within the same
TwillApplication . |
Modifier and Type | Method and Description |
---|---|
Cancellable |
BasicTwillContext.electLeader(String name,
ElectionHandler participantHandler) |
Cancellable |
ElectionRegistry.register(String name,
ElectionHandler handler)
Creates a new
LeaderElection for the given arguments, starts the service, and adds it to the registry. |
Copyright © 2013-2020 The Apache Software Foundation. All rights reserved.