Interface ObservableCachingScheme
- All Superinterfaces:
BackingMapManagerBuilder
,CachingScheme
,MapBuilder
,NamedCacheBuilder
,Scheme
,ServiceScheme
- All Known Implementing Classes:
AbstractCachingScheme
,AbstractCompositeScheme
,AbstractJournalScheme
,AbstractLocalCachingScheme
,BackingMapScheme
,BaseGrpcCacheScheme
,BaseGrpcScheme
,CaffeineScheme
,ClassScheme
,ContinuousQueryCacheScheme
,CustomScheme
,DistributedScheme
,ExternalScheme
,FlashJournalScheme
,LocalScheme
,NearScheme
,OptimisticScheme
,OverflowScheme
,PagedExternalScheme
,PagedTopicScheme
,ProxyScheme
,RamJournalScheme
,ReadWriteBackingMapScheme
,RemoteCacheScheme
,ReplicatedScheme
,TransactionalScheme
,ViewScheme
An
ObservableCachingScheme
is a CachingScheme
that supports
defining and adding MapListener
s to realized Map
s and
NamedCache
s.- Since:
- Coherence 12.1.2
- Author:
- bo 2012.11.06
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
establishMapListeners
(Map map, ParameterResolver resolver, MapBuilder.Dependencies dependencies) Establishes an appropriateMapListener
(provided by thegetListenerBuilder()
) on theObservableMap
that was produced by theObservableCachingScheme
.Obtains aParameterizedBuilder
for aMapListener
that can be used for buildingMapListener
s those of which may be later added to theMap
s orNamedCache
s realized by theCachingScheme
.Methods inherited from interface com.tangosol.coherence.config.builder.BackingMapManagerBuilder
realizeBackingMapManager
Methods inherited from interface com.tangosol.coherence.config.builder.MapBuilder
realizeMap
Methods inherited from interface com.tangosol.coherence.config.builder.NamedCacheBuilder
realizeCache
Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, getServiceType, isAutoStart
-
Method Details
-
getListenerBuilder
ParameterizedBuilder<MapListener> getListenerBuilder()Obtains aParameterizedBuilder
for aMapListener
that can be used for buildingMapListener
s those of which may be later added to theMap
s orNamedCache
s realized by theCachingScheme
.- Returns:
- a
ParameterizedBuilder
forMapListener
s
-
establishMapListeners
void establishMapListeners(Map map, ParameterResolver resolver, MapBuilder.Dependencies dependencies) Establishes an appropriateMapListener
(provided by thegetListenerBuilder()
) on theObservableMap
that was produced by theObservableCachingScheme
.This method will automatically inject the following types and named values into realized classes that have been annotated with @Injectable.
-
BackingMapManagerContext
(optionally named "manager-context") -
ConfigurableCacheFactory
- Cache Name (as a
String
.class named "cache-name") - Context
ClassLoader
(optionally named "class-loader") -
ResourceRegistry
-
CacheConfig
- together with any other resource, named or otherwise, available
in the
ResourceRegistry
provided by theConfigurableCacheFactory
.
- Parameters:
map
- anObservableMap
to which to add aMapListener
(if the map is not observable, no listeners are added)resolver
- theParameterResolver
to use for resolving builder parametersdependencies
- theMapBuilder
dependencies from which to obtain builder information- See Also:
-
-