Uses of Class
com.orbitz.consul.model.State
-
Packages that use State Package Description com.orbitz.consul com.orbitz.consul.cache com.orbitz.consul.model -
-
Uses of State in com.orbitz.consul
Methods in com.orbitz.consul with parameters of type State Modifier and Type Method Description voidAgentClient. check(java.lang.String checkId, State state, java.lang.String note)Checks in with Consul.voidAgentClient. checkTtl(java.lang.String serviceId, State state, java.lang.String note)Prepends the default TTL prefix to the serviceId to produce a check id, then delegates to check(String checkId, State state, String note) This method only works with TTL checks that have not been given a custom name.ConsulResponse<java.util.List<HealthCheck>>HealthClient. getChecksByState(State state)Retrieves the healthchecks for a state.ConsulResponse<java.util.List<HealthCheck>>HealthClient. getChecksByState(State state, QueryOptions queryOptions)Retrieves the healthchecks for a state in a given datacenter withQueryOptions.voidHealthClient. getChecksByState(State state, QueryOptions queryOptions, ConsulResponseCallback<java.util.List<HealthCheck>> callback)Asynchronously retrieves the healthchecks for a state in a given datacenter withQueryOptions. -
Uses of State in com.orbitz.consul.cache
Methods in com.orbitz.consul.cache with parameters of type State Modifier and Type Method Description static HealthCheckCacheHealthCheckCache. newCache(HealthClient healthClient, State state)static HealthCheckCacheHealthCheckCache. newCache(HealthClient healthClient, State state, int watchSeconds)static HealthCheckCacheHealthCheckCache. newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions)static HealthCheckCacheHealthCheckCache. newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, java.util.function.Function<HealthCheck,java.lang.String> keyExtractor)static HealthCheckCacheHealthCheckCache. newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, java.util.function.Function<HealthCheck,java.lang.String> keyExtractor, java.util.concurrent.ScheduledExecutorService callbackExecutorService)Factory method to construct a string/HealthCheckmap for a particularState. -
Uses of State in com.orbitz.consul.model
Methods in com.orbitz.consul.model that return State Modifier and Type Method Description static StateState. fromName(java.lang.String name)Returns the appropriateStategiven the name.static StateState. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static State[]State. values()Returns an array containing the constants of this enum type, in the order they are declared.
-