Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.config
Class CacheConfig

java.lang.Object
  extended by com.tangosol.coherence.config.CacheConfig


public class CacheConfig
extends java.lang.Object

A CacheConfig is the top-level container for Coherence Cache Configuration, that of which is used at runtime to establish caches and services.

Since:
Coherence 12.1.2
Author:
pfm 2011.12.2

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.util.List getEventInterceptorBuilders()
          Obtains the List of NamedEventInterceptorBuilders for this CacheConfig.
 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 setEventInterceptorBuilders(java.util.List listBuilders)
          Sets the List of NamedEventInterceptorBuilders for this CacheConfig.
 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

CacheConfig

public CacheConfig(com.tangosol.config.expression.ParameterResolver defaultParameterResolver)
Construct a CacheConfig.

Method Detail

getScopeName

public java.lang.String getScopeName()
Obtains the scope name of the CacheConfig.

isScoped

public boolean isScoped()
Determines if the CacheConfig has been provided with a scope name.
Returns:
true if the CacheConfig has a scope name, false otherwise

setScopeName

@Injectable(value="scope-name")
public void setScopeName(java.lang.String sScopeName)
Set the scope name of the CacheConfig (which will be trimmed)
Parameters:
sScopeName - the scope name

getEventInterceptorBuilders

public java.util.List getEventInterceptorBuilders()
Obtains the List of NamedEventInterceptorBuilders for this CacheConfig.
Returns:
a List of NamedEventInterceptorBuilders or null if unspecified

setEventInterceptorBuilders

@Injectable(value="interceptors")
public void setEventInterceptorBuilders(java.util.List listBuilders)
Sets the List of NamedEventInterceptorBuilders for this CacheConfig.
Parameters:
listBuilders - the List of NamedEventInterceptorBuilders for this CacheConfig

getCacheMappingRegistry

public CacheMappingRegistry getCacheMappingRegistry()
Obtain the CacheMappingRegistry for the CacheConfig.
Returns:
the CacheMappingRegistry

setCacheMappingRegistry

@Injectable(value="caching-scheme-mapping")
public void setCacheMappingRegistry(CacheMappingRegistry registry)
Set the CacheMappingRegistry.
Parameters:
registry - the CacheMappingRegistry

getServiceSchemeRegistry

public ServiceSchemeRegistry getServiceSchemeRegistry()
Obtain the ServiceSchemeRegistry for the CacheConfig.
Returns:
the ServiceSchemeRegistry

setServiceSchemeRegistry

@Injectable(value="caching-schemes")
public void setServiceSchemeRegistry(ServiceSchemeRegistry registry)
Set the ServiceSchemeRegistry for the CacheConfig.
Parameters:
registry - the ServiceSchemeRegistry

findSchemeByCacheName

public CachingScheme findSchemeByCacheName(java.lang.String sCacheName)
Find the CachingScheme for the specified cache name.
Parameters:
sCacheName - the cache name
Returns:
the CachingScheme or null if not found

findSchemeByServiceName

public ServiceScheme findSchemeByServiceName(java.lang.String sServiceName)
Find the ServiceScheme given the service name.
Parameters:
sServiceName - the service name to match
Returns:
the ServiceScheme or null

findSchemeBySchemeName

public ServiceScheme findSchemeBySchemeName(java.lang.String sSchemeName)
Find the ServiceScheme given the scheme name.
Parameters:
sSchemeName - the scheme name to match
Returns:
the ServiceScheme or null

getDefaultParameterResolver

public com.tangosol.config.expression.ParameterResolver getDefaultParameterResolver()
Obtains the ParameterResolver to use for the CacheConfig when no other is available or in context.
Returns:
the default ParameterResolver

validate

public CacheConfig validate()
Validate the cache configuration.
Returns:
this object

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.