
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, setpublic 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 DiscoveryCacheProviderpublic void putRegistry(DiscoveryCacheKey discoveryCacheKey, Serializable value)
putRegistry in class DiscoveryCacheProviderpublic Serializable getAuthority(DiscoveryCacheKey discoveryCacheKey)
getAuthority in class DiscoveryCacheProviderpublic void putAuthority(DiscoveryCacheKey discoveryCacheKey, Serializable value)
putAuthority in class DiscoveryCacheProviderpublic 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.