public class WhirlyCacheDiscoveryCacheProvider extends DiscoveryCacheProvider
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TTL |
Constructor and Description |
---|
WhirlyCacheDiscoveryCacheProvider() |
WhirlyCacheDiscoveryCacheProvider(com.whirlycott.cache.Cache registryCache,
com.whirlycott.cache.Cache authorityCache) |
WhirlyCacheDiscoveryCacheProvider(com.whirlycott.cache.Cache registryCache,
com.whirlycott.cache.Cache authorityCache,
long ttl) |
Modifier and Type | Method and Description |
---|---|
Serializable |
getAuthority(DiscoveryCacheKey discoveryCacheKey) |
com.whirlycott.cache.Cache |
getAuthorityCache() |
Serializable |
getRegistry(DiscoveryCacheKey discoveryCacheKey) |
com.whirlycott.cache.Cache |
getRegistryCache() |
long |
getTtl() |
void |
putAuthority(DiscoveryCacheKey discoveryCacheKey,
Serializable value) |
void |
putRegistry(DiscoveryCacheKey discoveryCacheKey,
Serializable value) |
void |
setAuthorityCache(com.whirlycott.cache.Cache authorityCache) |
void |
setRegistryCache(com.whirlycott.cache.Cache registryCache) |
void |
setTtl(long ttl) |
get, set
public static final long DEFAULT_TTL
public WhirlyCacheDiscoveryCacheProvider(com.whirlycott.cache.Cache registryCache, com.whirlycott.cache.Cache authorityCache, long ttl)
public WhirlyCacheDiscoveryCacheProvider(com.whirlycott.cache.Cache registryCache, com.whirlycott.cache.Cache authorityCache)
public WhirlyCacheDiscoveryCacheProvider()
public Serializable getRegistry(DiscoveryCacheKey discoveryCacheKey)
getRegistry
in class DiscoveryCacheProvider
public void putRegistry(DiscoveryCacheKey discoveryCacheKey, Serializable value)
putRegistry
in class DiscoveryCacheProvider
public Serializable getAuthority(DiscoveryCacheKey discoveryCacheKey)
getAuthority
in class DiscoveryCacheProvider
public void putAuthority(DiscoveryCacheKey discoveryCacheKey, Serializable value)
putAuthority
in class DiscoveryCacheProvider
public com.whirlycott.cache.Cache getRegistryCache()
public void setRegistryCache(com.whirlycott.cache.Cache registryCache)
public com.whirlycott.cache.Cache getAuthorityCache()
public void setAuthorityCache(com.whirlycott.cache.Cache authorityCache)
public long getTtl()
public void setTtl(long ttl)
Copyright © 2017. All rights reserved.