public class HealthCheckCache extends ConsulCache<String,HealthCheck>
ConsulCache.CallbackConsumer<V>, ConsulCache.Listener<K,V>, ConsulCache.Scheduler| Modifier and Type | Method and Description |
|---|---|
static HealthCheckCache |
newCache(HealthClient healthClient,
State state) |
static HealthCheckCache |
newCache(HealthClient healthClient,
State state,
int watchSeconds) |
static HealthCheckCache |
newCache(HealthClient healthClient,
State state,
int watchSeconds,
QueryOptions queryOptions) |
static HealthCheckCache |
newCache(HealthClient healthClient,
State state,
int watchSeconds,
QueryOptions queryOptions,
Function<HealthCheck,String> keyExtractor) |
static HealthCheckCache |
newCache(HealthClient healthClient,
State state,
int watchSeconds,
QueryOptions queryOptions,
Function<HealthCheck,String> keyExtractor,
ScheduledExecutorService callbackExecutorService)
Factory method to construct a string/
HealthCheck map for a particular State. |
addListener, awaitInitialized, close, createDefault, createExternal, getListeners, getMap, getMapWithMetadata, getState, removeListener, start, stop, watchParamspublic static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, Function<HealthCheck,String> keyExtractor, ScheduledExecutorService callbackExecutorService)
HealthCheck map for a particular State.
Keys will be the HealthCheck.getCheckId().healthClient - the HealthClientstate - the state fo filter checkspublic static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, Function<HealthCheck,String> keyExtractor)
public static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions)
public static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds)
public static HealthCheckCache newCache(HealthClient healthClient, State state)
Copyright © 2019. All rights reserved.