Class WrapperCachingScheme
- java.lang.Object
-
- com.tangosol.coherence.config.scheme.WrapperCachingScheme
-
- All Implemented Interfaces:
BackingMapManagerBuilder
,MapBuilder
,NamedCacheBuilder
,CachingScheme
,Scheme
,ServiceScheme
- Direct Known Subclasses:
PagedTopicStorageScheme
public class WrapperCachingScheme extends Object implements CachingScheme
A simple implementation of theCachingScheme
interface built as a wrapper around another CachingScheme implementation.- Since:
- Coherence 14.1.1
- Author:
- jk 2015.05.29
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder
MapBuilder.Dependencies
-
-
Field Summary
-
Fields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
-
-
Constructor Summary
Constructors Constructor Description WrapperCachingScheme(CachingScheme innerScheme)
Create aWrapperCachingScheme
that wraps a specifiedCachingScheme
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CachingScheme
getCachingScheme()
Obtain the wrappedCachingScheme
.List<NamedEventInterceptorBuilder>
getEventInterceptorBuilders()
String
getSchemeName()
Obtains the name of theScheme
.String
getScopedServiceName()
Return the service name with any scoping applied.ServiceBuilder
getServiceBuilder()
Return theServiceBuilder
that is needed to build a service.String
getServiceName()
Return the service name.String
getServiceType()
Return the service type.boolean
isAnonymous()
Determines if theScheme
is a defined and thus useful name.boolean
isAutoStart()
Return true if the service has auto-start enabled.BackingMapManager
realizeBackingMapManager(ConfigurableCacheFactory ccf)
Realize aBackingMapManager
to be scoped by the specifiedConfigurableCacheFactory
.NamedCache
realizeCache(ParameterResolver resolver, MapBuilder.Dependencies dependencies)
Realizes aNamedCache
(possibly "ensuring it") based on the state of the builder, the providedParameterResolver
andMapBuilder
dependencies.Map
realizeMap(ParameterResolver resolver, MapBuilder.Dependencies dependencies)
Realize aMap
based on the state of theMapBuilder
, resolvable parameters and providedMapBuilder.Dependencies
.
-
-
-
Constructor Detail
-
WrapperCachingScheme
public WrapperCachingScheme(CachingScheme innerScheme)
Create aWrapperCachingScheme
that wraps a specifiedCachingScheme
.- Parameters:
innerScheme
- theCachingScheme
being wrapped
-
-
Method Detail
-
getCachingScheme
public CachingScheme getCachingScheme()
Obtain the wrappedCachingScheme
.- Returns:
- the wrapped
CachingScheme
-
realizeBackingMapManager
public BackingMapManager realizeBackingMapManager(ConfigurableCacheFactory ccf)
Description copied from interface:BackingMapManagerBuilder
Realize aBackingMapManager
to be scoped by the specifiedConfigurableCacheFactory
.- Specified by:
realizeBackingMapManager
in interfaceBackingMapManagerBuilder
- Parameters:
ccf
- theConfigurableCacheFactory
- Returns:
- a
BackingMapManager
-
realizeMap
public Map realizeMap(ParameterResolver resolver, MapBuilder.Dependencies dependencies)
Description copied from interface:MapBuilder
Realize aMap
based on the state of theMapBuilder
, resolvable parameters and providedMapBuilder.Dependencies
.- Specified by:
realizeMap
in interfaceMapBuilder
- Parameters:
resolver
- theParameterResolver
dependencies
- theMapBuilder.Dependencies
for realizing theMap
- Returns:
- a
Map
-
realizeCache
public NamedCache realizeCache(ParameterResolver resolver, MapBuilder.Dependencies dependencies)
Description copied from interface:NamedCacheBuilder
Realizes aNamedCache
(possibly "ensuring it") based on the state of the builder, the providedParameterResolver
andMapBuilder
dependencies.The
MapBuilder
dependencies are required to satisfy the requirement when realizing aNamedCache
additionally involves realizing one or more internalMap
s.- Specified by:
realizeCache
in interfaceNamedCacheBuilder
- Parameters:
resolver
- the ParameterResolverdependencies
- theMapBuilder
dependencies- Returns:
- a
NamedCache
-
isAutoStart
public boolean isAutoStart()
Description copied from interface:ServiceScheme
Return true if the service has auto-start enabled.- Specified by:
isAutoStart
in interfaceServiceScheme
- Returns:
- the auto-start flag.
-
getServiceName
public String getServiceName()
Description copied from interface:ServiceScheme
Return the service name.- Specified by:
getServiceName
in interfaceServiceScheme
- Returns:
- the service name
-
getScopedServiceName
public String getScopedServiceName()
Description copied from interface:ServiceScheme
Return the service name with any scoping applied. The scoped name in general has the following format:[<domain-partition-name>'/'] [<application-scope>':'] <service-name>
- Specified by:
getScopedServiceName
in interfaceServiceScheme
- Returns:
- the scoped service name
-
getServiceType
public String getServiceType()
Description copied from interface:ServiceScheme
Return the service type.- Specified by:
getServiceType
in interfaceServiceScheme
- Returns:
- the service type
-
getServiceBuilder
public ServiceBuilder getServiceBuilder()
Description copied from interface:ServiceScheme
Return theServiceBuilder
that is needed to build a service.- Specified by:
getServiceBuilder
in interfaceServiceScheme
- Returns:
- the
ServiceBuilder
or null if the scheme does not support services.
-
getEventInterceptorBuilders
public List<NamedEventInterceptorBuilder> getEventInterceptorBuilders()
Description copied from interface:ServiceScheme
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
- Returns:
- an
List
overNamedEventInterceptorBuilder
s
-
getSchemeName
public String getSchemeName()
Description copied from interface:Scheme
Obtains the name of theScheme
.- Specified by:
getSchemeName
in interfaceScheme
- Returns:
- the scheme name
-
isAnonymous
public boolean isAnonymous()
Description copied from interface:Scheme
Determines if theScheme
is a defined and thus useful name.- Specified by:
isAnonymous
in interfaceScheme
- Returns:
- if the
Scheme
has a name.
-
-