public class ServiceHealthCache extends ConsulCache<ServiceHealthKey,ServiceHealth>
ConsulCache.CallbackConsumer<V>, ConsulCache.Listener<K,V>, ConsulCache.Scheduler| Modifier and Type | Method and Description |
|---|---|
static ServiceHealthCache |
newCache(HealthClient healthClient,
String serviceName) |
static ServiceHealthCache |
newCache(HealthClient healthClient,
String serviceName,
boolean passing,
int watchSeconds,
QueryOptions queryOptions) |
static ServiceHealthCache |
newCache(HealthClient healthClient,
String serviceName,
boolean passing,
int watchSeconds,
QueryOptions queryOptions,
Function<ServiceHealth,ServiceHealthKey> keyExtractor) |
static ServiceHealthCache |
newCache(HealthClient healthClient,
String serviceName,
boolean passing,
int watchSeconds,
QueryOptions queryOptions,
Function<ServiceHealth,ServiceHealthKey> keyExtractor,
ScheduledExecutorService callbackExecutorService)
Factory method to construct a string/
ServiceHealth map for a particular service. |
static ServiceHealthCache |
newCache(HealthClient healthClient,
String serviceName,
boolean passing,
QueryOptions queryOptions,
int watchSeconds) |
addListener, awaitInitialized, close, createDefault, createExternal, getListeners, getMap, getMapWithMetadata, getState, removeListener, start, stop, watchParamspublic static ServiceHealthCache newCache(HealthClient healthClient, String serviceName, boolean passing, int watchSeconds, QueryOptions queryOptions, Function<ServiceHealth,ServiceHealthKey> keyExtractor, ScheduledExecutorService callbackExecutorService)
ServiceHealth map for a particular service.
Keys will be a HostAndPort object made up of the service's address/port combohealthClient - the HealthClientserviceName - the name of the servicepassing - include only passing services?public static ServiceHealthCache newCache(HealthClient healthClient, String serviceName, boolean passing, int watchSeconds, QueryOptions queryOptions, Function<ServiceHealth,ServiceHealthKey> keyExtractor)
public static ServiceHealthCache newCache(HealthClient healthClient, String serviceName, boolean passing, int watchSeconds, QueryOptions queryOptions)
public static ServiceHealthCache newCache(HealthClient healthClient, String serviceName, boolean passing, QueryOptions queryOptions, int watchSeconds)
public static ServiceHealthCache newCache(HealthClient healthClient, String serviceName)
Copyright © 2019. All rights reserved.