Class WrapperCachingScheme
java.lang.Object
com.tangosol.coherence.config.scheme.WrapperCachingScheme
- All Implemented Interfaces:
BackingMapManagerBuilder
,MapBuilder
,NamedCacheBuilder
,CachingScheme
,Scheme
,ServiceScheme
- Direct Known Subclasses:
PagedTopicStorageScheme
A simple implementation of the
CachingScheme
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
ConstructorDescriptionWrapperCachingScheme
(CachingScheme innerScheme) Create aWrapperCachingScheme
that wraps a specifiedCachingScheme
. -
Method Summary
Modifier and TypeMethodDescriptionObtain the wrappedCachingScheme
.Obtains the name of theScheme
.Return the service name with any scoping applied.Return theServiceBuilder
that is needed to build a service.Return the service name.Return the service type.boolean
Determines if theScheme
is a defined and thus useful name.boolean
Return true if the service has auto-start enabled.Realize aBackingMapManager
to be scoped by the specifiedConfigurableCacheFactory
.realizeCache
(ParameterResolver resolver, MapBuilder.Dependencies dependencies) Realizes aNamedCache
(possibly "ensuring it") based on the state of the builder, the providedParameterResolver
andMapBuilder
dependencies.realizeMap
(ParameterResolver resolver, MapBuilder.Dependencies dependencies) Realize aMap
based on the state of theMapBuilder
, resolvable parameters and providedMapBuilder.Dependencies
.
-
Constructor Details
-
WrapperCachingScheme
Create aWrapperCachingScheme
that wraps a specifiedCachingScheme
.- Parameters:
innerScheme
- theCachingScheme
being wrapped
-
-
Method Details
-
getCachingScheme
Obtain the wrappedCachingScheme
.- Returns:
- the wrapped
CachingScheme
-
realizeBackingMapManager
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
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
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
Description copied from interface:ServiceScheme
Return the service name.- Specified by:
getServiceName
in interfaceServiceScheme
- Returns:
- the service name
-
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
Description copied from interface:ServiceScheme
Return the service type.- Specified by:
getServiceType
in interfaceServiceScheme
- Returns:
- the service type
-
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
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
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.
-