Package com.orbitz.consul.cache
Class ServiceCatalogCache
- java.lang.Object
-
- com.orbitz.consul.cache.ConsulCache<java.lang.String,CatalogService>
-
- com.orbitz.consul.cache.ServiceCatalogCache
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ServiceCatalogCache extends ConsulCache<java.lang.String,CatalogService>
-
-
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 ServiceCatalogCachenewCache(CatalogClient catalogClient, java.lang.String serviceName)static ServiceCatalogCachenewCache(CatalogClient catalogClient, java.lang.String serviceName, QueryOptions queryOptions, int watchSeconds)static ServiceCatalogCachenewCache(CatalogClient catalogClient, java.lang.String serviceName, QueryOptions queryOptions, int watchSeconds, java.util.concurrent.ScheduledExecutorService callbackExecutorService)-
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 ServiceCatalogCache newCache(CatalogClient catalogClient, java.lang.String serviceName, QueryOptions queryOptions, int watchSeconds, java.util.concurrent.ScheduledExecutorService callbackExecutorService)
-
newCache
public static ServiceCatalogCache newCache(CatalogClient catalogClient, java.lang.String serviceName, QueryOptions queryOptions, int watchSeconds)
-
newCache
public static ServiceCatalogCache newCache(CatalogClient catalogClient, java.lang.String serviceName)
-
-