Uses of Class
org.kiwiproject.curator.leader.ServiceDescriptor
Packages that use ServiceDescriptor
-
Uses of ServiceDescriptor in org.kiwiproject.curator.leader
Methods in org.kiwiproject.curator.leader that return ServiceDescriptorMethods in org.kiwiproject.curator.leader with parameters of type ServiceDescriptorModifier and TypeMethodDescriptionstatic 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.static StringManagedLeaderLatch.leaderLatchId(ServiceDescriptor serviceDescriptor) Utility method to generate a standard latch id for a service.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.static ManagedLeaderLatchManagedLeaderLatchCreator.startLeaderLatch(org.apache.curator.framework.CuratorFramework client, io.dropwizard.core.setup.Environment environment, ServiceDescriptor serviceDescriptor, org.apache.curator.framework.recipes.leader.LeaderLatchListener... listeners) If the only thing you want is aManagedLeaderLatchand you want the standard options (a health check and JAX-RS REST resources) and you do not need references to them, use this method to create and start a latch.Constructors in org.kiwiproject.curator.leader with parameters of type ServiceDescriptorModifierConstructorDescriptionManagedLeaderLatch(org.apache.curator.framework.CuratorFramework client, ServiceDescriptor serviceDescriptor, org.apache.curator.framework.recipes.leader.LeaderLatchListener... listeners) Construct a latch with a standard ID and latch path.