Package com.orbitz.consul.cache
Class HealthCheckCache
- java.lang.Object
-
- com.orbitz.consul.cache.ConsulCache<java.lang.String,HealthCheck>
-
- com.orbitz.consul.cache.HealthCheckCache
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class HealthCheckCache extends ConsulCache<java.lang.String,HealthCheck>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.orbitz.consul.cache.ConsulCache
ConsulCache.CallbackConsumer<V>, ConsulCache.Listener<K,V>, ConsulCache.Scheduler
-
-
Method Summary
Modifier and Type Method Description static HealthCheckCachenewCache(HealthClient healthClient, State state)static HealthCheckCachenewCache(HealthClient healthClient, State state, int watchSeconds)static HealthCheckCachenewCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions)static HealthCheckCachenewCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, java.util.function.Function<HealthCheck,java.lang.String> keyExtractor)static HealthCheckCachenewCache(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.-
Methods inherited from class com.orbitz.consul.cache.ConsulCache
addListener, awaitInitialized, close, createDefault, createExternal, getListeners, getMap, getMapWithMetadata, getState, removeListener, start, stop, watchParams
-
-
-
-
Method Detail
-
newCache
public static HealthCheckCache 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. Keys will be theHealthCheck.getCheckId().- Parameters:
healthClient- theHealthClientstate- the state fo filter checks- Returns:
- a cache object
-
newCache
public static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, java.util.function.Function<HealthCheck,java.lang.String> keyExtractor)
-
newCache
public static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions)
-
newCache
public static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds)
-
newCache
public static HealthCheckCache newCache(HealthClient healthClient, State state)
-
-