Uses of Class
org.kiwiproject.curator.leader.ManagedLeaderLatchCreator
-
Packages that use ManagedLeaderLatchCreator Package Description org.kiwiproject.curator.leader -
-
Uses of ManagedLeaderLatchCreator in org.kiwiproject.curator.leader
Methods in org.kiwiproject.curator.leader that return ManagedLeaderLatchCreator Modifier and Type Method Description ManagedLeaderLatchCreatorManagedLeaderLatchCreator. addLeaderLatchListener(org.apache.curator.framework.recipes.leader.LeaderLatchListener listener)Adds the specifiedLeaderLatchListener.static ManagedLeaderLatchCreatorManagedLeaderLatchCreator. from(org.apache.curator.framework.CuratorFramework client, io.dropwizard.setup.Environment environment, ServiceDescriptor serviceDescriptor, org.apache.curator.framework.recipes.leader.LeaderLatchListener... listeners)Static factory method to create aManagedLeaderLatchCreator.ManagedLeaderLatchCreatorManagedLeaderLatchCreator. start()Starts the leader latch, performing the following actions: Creates a newManagedLeaderLatch, starts it, and tells the Dropwizard lifecycle to manage (stop) it Creates and registers aManagedLeaderLatchHealthCheckunless explicitly disabled viawithoutHealthCheck()Creates and registers the JAX-RS REST endpoints unless explicitly disabled viawithoutResources()static ManagedLeaderLatchCreatorManagedLeaderLatchCreator. start(org.apache.curator.framework.CuratorFramework client, io.dropwizard.setup.Environment environment, ServiceDescriptor serviceInfo, org.apache.curator.framework.recipes.leader.LeaderLatchListener... listeners)If you want aManagedLeaderLatchand you want the standard options (a health check and JAX-RS REST resources) and you might need references to them, use this method to create and start a latch.ManagedLeaderLatchCreatorManagedLeaderLatchCreator. withoutHealthCheck()Configures without a health check.ManagedLeaderLatchCreatorManagedLeaderLatchCreator. withoutResources()Configures without REST resources to check for leadership and if a leader latch is present.
-