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 Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder
MapBuilder.Dependencies -
Field Summary
Fields inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
m_serviceDependenciesFields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeMap, setListenerBuilder, validateMethods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
ensureService, getDefaultServiceName, getEventInterceptorBuilders, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXmlMethods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymousMethods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
-
Constructor Details
-
TransactionalScheme
public TransactionalScheme()
-
-
Method Details
-
getServiceType
Return the service type.- Returns:
- the service type
-
realizeService
Realize (ensure) a Service. The returned Service is fully configured and ready to be used.- Specified by:
realizeServicein interfaceServiceBuilder- Overrides:
realizeServicein classAbstractServiceScheme- Parameters:
resolver- the ParameterResolverloader- the ClassLoadercluster- the Cluster which will already be running if necessary- Returns:
- the Service
-
isRunningClusterNeeded
public boolean isRunningClusterNeeded()Return true if a running cluster is needed before using a service.- Specified by:
isRunningClusterNeededin interfaceServiceBuilder- Specified by:
isRunningClusterNeededin classAbstractServiceScheme- Returns:
trueif a running cluster is needed before using a service
-
realizeCache
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 interfaceNamedCacheBuilder- Overrides:
realizeCachein classAbstractCachingScheme- Parameters:
resolver- the ParameterResolverdependencies- theMapBuilderdependencies- Returns:
- a
NamedCache
-