Class TransactionalScheme
- 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.TransactionalScheme
 
 
 
 
- 
- All Implemented Interfaces:
- BackingMapManagerBuilder,- MapBuilder,- NamedCacheBuilder,- ServiceBuilder,- CachingScheme,- ObservableCachingScheme,- Scheme,- ServiceScheme
 
 public class TransactionalScheme extends AbstractCachingScheme TheTransactionalSchemeclass 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 Summary- 
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilderMapBuilder.Dependencies
 
- 
 - 
Field Summary- 
Fields inherited from class com.tangosol.coherence.config.scheme.AbstractServiceSchemem_serviceDependencies
 - 
Fields inherited from interface com.tangosol.coherence.config.scheme.ServiceSchemeDELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
 
- 
 - 
Constructor SummaryConstructors Constructor Description TransactionalScheme()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetServiceType()Return the service type.booleanisRunningClusterNeeded()Return true if a running cluster is needed before using a service.NamedCacherealizeCache(ParameterResolver resolver, MapBuilder.Dependencies dependencies)Realizes aNamedCache(possibly "ensuring it") based on the state of the builder, the providedParameterResolverandMapBuilderdependencies.ServicerealizeService(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, validate
 - 
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceSchemeensureService, getDefaultServiceName, getEventInterceptorBuilders, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
 - 
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractSchemegetSchemeName, isAnonymous, setSchemeName, validate
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.tangosol.coherence.config.scheme.SchemegetSchemeName, isAnonymous
 - 
Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceSchemegetEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
 
- 
 
- 
- 
- 
Method Detail- 
getServiceTypepublic String getServiceType() Return the service type.- Returns:
- the service type
 
 - 
realizeServicepublic Service realizeService(ParameterResolver resolver, ClassLoader loader, Cluster cluster) Realize (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
 
 - 
realizeCachepublic NamedCache realizeCache(ParameterResolver resolver, MapBuilder.Dependencies dependencies) Realizes 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
 
 
- 
 
-