public class TransactionalScheme extends AbstractCachingScheme
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.MapBuilder.Dependencies
m_serviceDependencies
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
Constructor and Description |
---|
TransactionalScheme() |
Modifier and Type | Method and Description |
---|---|
String |
getServiceType()
Return the service type.
|
boolean |
isRunningClusterNeeded()
Return true if a running cluster is needed before using a service.
|
NamedCache |
realizeCache(com.tangosol.config.expression.ParameterResolver resolver,
MapBuilder.Dependencies dependencies)
Realizes a
NamedCache (possibly "ensuring it") based on the state
of the builder, the provided ParameterResolver and MapBuilder
dependencies. |
Service |
realizeService(com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader,
Cluster cluster)
Realize (ensure) a Service.
|
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeMap, setListenerBuilder, validate
getDefaultServiceName, getEventInterceptorBuilders, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
getSchemeName, isAnonymous, setSchemeName, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
getSchemeName, isAnonymous
public String getServiceType()
public Service realizeService(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, Cluster cluster)
realizeService
in interface ServiceBuilder
realizeService
in class AbstractServiceScheme
resolver
- the ParameterResolverloader
- the ClassLoadercluster
- the Cluster which will already be running if necessarypublic boolean isRunningClusterNeeded()
isRunningClusterNeeded
in interface ServiceBuilder
isRunningClusterNeeded
in class AbstractServiceScheme
true
if a running cluster is needed before using a servicepublic NamedCache realizeCache(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)
NamedCache
(possibly "ensuring it") based on the state
of the builder, the provided ParameterResolver
and MapBuilder
dependencies.
The MapBuilder
dependencies are required to satisfy the requirement
when realizing a NamedCache
additionally involves realizing one
or more internal Map
s.
realizeCache
in interface NamedCacheBuilder
realizeCache
in class AbstractCachingScheme
resolver
- the ParameterResolverdependencies
- the MapBuilder
dependenciesNamedCache