Uses of Class
org.kiwiproject.curator.leader.ManagedLeaderLatchCreator
Packages that use ManagedLeaderLatchCreator
-
Uses of ManagedLeaderLatchCreator in org.kiwiproject.curator.leader
Methods in org.kiwiproject.curator.leader that return ManagedLeaderLatchCreatorModifier and TypeMethodDescriptionManagedLeaderLatchCreator.addLeaderLatchListener(org.apache.curator.framework.recipes.leader.LeaderLatchListener listener) Adds the specifiedLeaderLatchListener.static ManagedLeaderLatchCreatorManagedLeaderLatchCreator.from(org.apache.curator.framework.CuratorFramework client, io.dropwizard.core.setup.Environment environment, ServiceDescriptor serviceDescriptor, org.apache.curator.framework.recipes.leader.LeaderLatchListener... listeners) Static factory method to create aManagedLeaderLatchCreator.ManagedLeaderLatchCreator.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.core.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.ManagedLeaderLatchCreator.withoutHealthCheck()Configures without a health check.ManagedLeaderLatchCreator.withoutResources()Configures without REST resources to check for leadership and if a leader latch is present.