Package org.kiwiproject.consul.cache
Class ServiceCatalogCache
java.lang.Object
org.kiwiproject.consul.cache.ConsulCache<String,CatalogService>
org.kiwiproject.consul.cache.ServiceCatalogCache
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kiwiproject.consul.cache.ConsulCache
ConsulCache.CallbackConsumer<V>, ConsulCache.Listener<K,V>, ConsulCache.Scheduler, ConsulCache.State -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceCatalogCachenewCache(CatalogClient catalogClient, String serviceName) static ServiceCatalogCachenewCache(CatalogClient catalogClient, String serviceName, QueryOptions queryOptions, int watchSeconds) static ServiceCatalogCachenewCache(CatalogClient catalogClient, String serviceName, QueryOptions queryOptions, int watchSeconds, ScheduledExecutorService callbackExecutorService) Methods inherited from class org.kiwiproject.consul.cache.ConsulCache
addListener, awaitInitialized, checkWatch, close, createDefault, createExternal, getListeners, getMap, getMapWithMetadata, getState, removeListener, start, stop, watchParams
-
Method Details
-
newCache
public static ServiceCatalogCache newCache(CatalogClient catalogClient, String serviceName, QueryOptions queryOptions, int watchSeconds, ScheduledExecutorService callbackExecutorService) -
newCache
public static ServiceCatalogCache newCache(CatalogClient catalogClient, String serviceName, QueryOptions queryOptions, int watchSeconds) -
newCache
-