Class TransactionalScheme
java.lang.Object
com.tangosol.coherence.config.scheme.AbstractScheme
com.tangosol.coherence.config.scheme.AbstractServiceScheme
com.tangosol.coherence.config.scheme.AbstractCachingScheme
com.tangosol.coherence.config.scheme.TransactionalScheme
- All Implemented Interfaces:
- BackingMapManagerBuilder,- MapBuilder,- NamedCacheBuilder,- ServiceBuilder,- CachingScheme,- ObservableCachingScheme,- Scheme,- ServiceScheme
The 
TransactionalScheme class builds a transactional cache.  The
 transactional cache is a logical cache backed by a set of distributed caches.
 A distributed service is used to handle the internal txn caches, since they are
 all distributed caches.  Because the transactional cache is logical, it
 implements the realizeNamedCache used by ECCF.ensureCache. There is no backing
 map for transactional caches (because they are logical) so realizeMap is not
 needed.  However, the internal distributed txn caches do have backing maps
 which are handled by the normal DistributedScheme code.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.12.06
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilderMapBuilder.Dependencies
- 
Field SummaryFields inherited from class com.tangosol.coherence.config.scheme.AbstractServiceSchemem_serviceDependenciesFields inherited from interface com.tangosol.coherence.config.scheme.ServiceSchemeDELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the service type.booleanReturn true if a running cluster is needed before using a service.realizeCache(ParameterResolver resolver, MapBuilder.Dependencies dependencies) Realizes aNamedCache(possibly "ensuring it") based on the state of the builder, the providedParameterResolverandMapBuilderdependencies.realizeService(ParameterResolver resolver, ClassLoader loader, Cluster cluster) Realize (ensure) a Service.Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingSchemeestablishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeMap, setListenerBuilder, validateMethods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceSchemeensureService, getDefaultServiceName, getEventInterceptorBuilders, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXmlMethods inherited from class com.tangosol.coherence.config.scheme.AbstractSchemegetSchemeName, isAnonymous, setSchemeName, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.coherence.config.scheme.SchemegetSchemeName, isAnonymousMethods inherited from interface com.tangosol.coherence.config.scheme.ServiceSchemegetEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
- 
Constructor Details- 
TransactionalSchemepublic TransactionalScheme()
 
- 
- 
Method Details- 
getServiceTypeReturn the service type.- Returns:
- the service type
 
- 
realizeServiceRealize (ensure) a Service. The returned Service is fully configured and ready to be used.- Specified by:
- realizeServicein interface- ServiceBuilder
- Overrides:
- realizeServicein class- AbstractServiceScheme
- Parameters:
- resolver- the ParameterResolver
- loader- the ClassLoader
- cluster- the Cluster which will already be running if necessary
- Returns:
- the Service
 
- 
isRunningClusterNeededpublic boolean isRunningClusterNeeded()Return true if a running cluster is needed before using a service.- Specified by:
- isRunningClusterNeededin interface- ServiceBuilder
- Specified by:
- isRunningClusterNeededin class- AbstractServiceScheme
- Returns:
- trueif a running cluster is needed before using a service
 
- 
realizeCacheRealizes aNamedCache(possibly "ensuring it") based on the state of the builder, the providedParameterResolverandMapBuilderdependencies.The MapBuilderdependencies are required to satisfy the requirement when realizing aNamedCacheadditionally involves realizing one or more internalMaps.- Specified by:
- realizeCachein interface- NamedCacheBuilder
- Overrides:
- realizeCachein class- AbstractCachingScheme
- Parameters:
- resolver- the ParameterResolver
- dependencies- the- MapBuilderdependencies
- Returns:
- a NamedCache
 
 
-