public class HealthCheckCache extends ConsulCache<String,HealthCheck>
ConsulCache.CallbackConsumer<V>, ConsulCache.Listener<K,V>| 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)
Factory method to construct a string/
HealthCheck map for a particular State. |
addListener, awaitInitialized, close, getListeners, getMap, getMapWithMetadata, getState, removeListener, start, stop, watchParamspublic static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds, QueryOptions queryOptions, Function<HealthCheck,String> keyExtractor)
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)
public static HealthCheckCache newCache(HealthClient healthClient, State state, int watchSeconds)
public static HealthCheckCache newCache(HealthClient healthClient, State state)
Copyright © 2018. All rights reserved.