Class AbstractLocalCachingScheme<T>
- java.lang.Object
-
- com.tangosol.coherence.config.scheme.AbstractScheme
-
- com.tangosol.coherence.config.scheme.AbstractServiceScheme<D>
-
- com.tangosol.coherence.config.scheme.AbstractCachingScheme
-
- com.tangosol.coherence.config.scheme.AbstractLocalCachingScheme<T>
-
- All Implemented Interfaces:
BackingMapManagerBuilder
,BuilderCustomization<T>
,MapBuilder
,NamedCacheBuilder
,ServiceBuilder
,CachingScheme
,ObservableCachingScheme
,Scheme
,ServiceScheme
- Direct Known Subclasses:
AbstractCompositeScheme
,AbstractJournalScheme
,BackingMapScheme
,CaffeineScheme
,ClassScheme
,ContinuousQueryCacheScheme
,CustomScheme
,ExternalScheme
,LocalScheme
,PagedExternalScheme
,ReadWriteBackingMapScheme
public abstract class AbstractLocalCachingScheme<T> extends AbstractCachingScheme implements BuilderCustomization<T>
TheAbstractLocalCachingScheme
is provides common functionality for local caching schemes, including local-scheme, external-scheme, etc.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.12.28
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder
MapBuilder.Dependencies
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
m_serviceDependencies
-
Fields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalCachingScheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterizedBuilder<T>
getCustomBuilder()
Obtains the customParameterizedBuilder
.List<NamedEventInterceptorBuilder>
getEventInterceptorBuilders()
String
getServiceType()
Return the service type.boolean
isRunningClusterNeeded()
Return true if a running cluster is needed before using a service.void
setCustomBuilder(ParameterizedBuilder<T> bldr)
Sets theParameterizedBuilder
to be used as the alternate builder.-
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, realizeMap, setListenerBuilder, validate
-
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
ensureService, getDefaultServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
-
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
-
Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
-
-
-
-
Method Detail
-
getServiceType
public String getServiceType()
Return the service type.- Specified by:
getServiceType
in interfaceServiceScheme
- Returns:
- the service type
-
getEventInterceptorBuilders
public List<NamedEventInterceptorBuilder> getEventInterceptorBuilders()
Obtains theList
ofNamedEventInterceptorBuilder
s that have been defined for theServiceScheme
.Note: For those
ServiceScheme
s don't support event interceptors, the returned value must be an empty list.- Specified by:
getEventInterceptorBuilders
in interfaceServiceScheme
- Overrides:
getEventInterceptorBuilders
in classAbstractServiceScheme
- Returns:
- an
List
overNamedEventInterceptorBuilder
s
-
isRunningClusterNeeded
public boolean isRunningClusterNeeded()
Return true if a running cluster is needed before using a service.- Specified by:
isRunningClusterNeeded
in interfaceServiceBuilder
- Specified by:
isRunningClusterNeeded
in classAbstractServiceScheme
- Returns:
true
if a running cluster is needed before using a service
-
getCustomBuilder
public ParameterizedBuilder<T> getCustomBuilder()
Obtains the customParameterizedBuilder
.- Specified by:
getCustomBuilder
in interfaceBuilderCustomization<T>
- Returns:
- the
ParameterizedBuilder
-
setCustomBuilder
public void setCustomBuilder(ParameterizedBuilder<T> bldr)
Sets theParameterizedBuilder
to be used as the alternate builder.- Specified by:
setCustomBuilder
in interfaceBuilderCustomization<T>
- Parameters:
bldr
- the ParameterizedBuilder
-
-