|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.config.CacheConfig
public class CacheConfig
A CacheConfig
is the top-level container for Coherence Cache Configuration, that of which is used at runtime to establish caches and services.
Constructor Summary | |
---|---|
CacheConfig(com.tangosol.config.expression.ParameterResolver defaultParameterResolver) Construct a CacheConfig . |
Method Summary | |
---|---|
CachingScheme |
findSchemeByCacheName(java.lang.String sCacheName) Find the CachingScheme for the specified cache name. |
ServiceScheme |
findSchemeBySchemeName(java.lang.String sSchemeName) Find the ServiceScheme given the scheme name. |
ServiceScheme |
findSchemeByServiceName(java.lang.String sServiceName) Find the ServiceScheme given the service name. |
CacheMappingRegistry |
getCacheMappingRegistry() Obtain the CacheMappingRegistry for the CacheConfig . |
com.tangosol.config.expression.ParameterResolver |
getDefaultParameterResolver() Obtains the ParameterResolver to use for the CacheConfig when no other is available or in context. |
java.lang.String |
getScopeName() Obtains the scope name of the CacheConfig . |
ServiceSchemeRegistry |
getServiceSchemeRegistry() Obtain the ServiceSchemeRegistry for the CacheConfig . |
boolean |
isScoped() Determines if the CacheConfig has been provided with a scope name. |
void |
setCacheMappingRegistry(CacheMappingRegistry registry) Set the CacheMappingRegistry . |
void |
setScopeName(java.lang.String sScopeName) Set the scope name of the CacheConfig (which will be trimmed) |
void |
setServiceSchemeRegistry(ServiceSchemeRegistry registry) Set the ServiceSchemeRegistry for the CacheConfig . |
CacheConfig |
validate() Validate the cache configuration. |
Constructor Detail |
---|
public CacheConfig(com.tangosol.config.expression.ParameterResolver defaultParameterResolver)
CacheConfig
.Method Detail |
---|
public java.lang.String getScopeName()
CacheConfig
.public boolean isScoped()
CacheConfig
has been provided with a scope name.true
if the CacheConfig
has a scope name, false
otherwise
@Injectable(value="scope-name")
public void setScopeName(java.lang.String sScopeName)
CacheConfig
(which will be trimmed)sScopeName
- the scope namepublic CacheMappingRegistry getCacheMappingRegistry()
CacheMappingRegistry
for the CacheConfig
.CacheMappingRegistry
@Injectable(value="caching-scheme-mapping")
public void setCacheMappingRegistry(CacheMappingRegistry registry)
CacheMappingRegistry
.registry
- the CacheMappingRegistry
public ServiceSchemeRegistry getServiceSchemeRegistry()
ServiceSchemeRegistry
for the CacheConfig
.ServiceSchemeRegistry
@Injectable(value="caching-schemes")
public void setServiceSchemeRegistry(ServiceSchemeRegistry registry)
ServiceSchemeRegistry
for the CacheConfig
.registry
- the ServiceSchemeRegistry
public CachingScheme findSchemeByCacheName(java.lang.String sCacheName)
CachingScheme
for the specified cache name.sCacheName
- the cache nameCachingScheme
or null
if not foundpublic ServiceScheme findSchemeByServiceName(java.lang.String sServiceName)
ServiceScheme
given the service name.sServiceName
- the service name to matchServiceScheme
or nullpublic ServiceScheme findSchemeBySchemeName(java.lang.String sSchemeName)
ServiceScheme
given the scheme name.sSchemeName
- the scheme name to matchServiceScheme
or nullpublic com.tangosol.config.expression.ParameterResolver getDefaultParameterResolver()
ParameterResolver
to use for the CacheConfig
when no other is available or in context.ParameterResolver
public CacheConfig validate()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |