|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
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
public class TransactionalScheme
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.
| Nested Class Summary | |
|---|---|
static class |
TransactionalScheme.ManagerThe Manager class uses builders to create the required backing maps and provides client access to those maps. |
| Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder |
|---|
MapBuilder.Dependencies |
| Constructor Summary | |
|---|---|
TransactionalScheme() |
|
| Method Summary | |
|---|---|
int |
getHighUnits(com.tangosol.config.expression.ParameterResolver resolver)Return the limit of cache size. |
java.lang.String |
getServiceType()Return the service type. |
boolean |
isRunningClusterNeeded()Return true if a running cluster is needed before using a service. |
BackingMapManager |
realizeBackingMapManager(ConfigurableCacheFactory ccf)Realize a BackingMapManager to be scoped by the specified ConfigurableCacheFactory. |
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, java.lang.ClassLoader loader, Cluster cluster)Realize (ensure) a Service. |
void |
setHighUnits(com.tangosol.config.expression.Expression expr)Set the high units. |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme |
|---|
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeMap, setListenerBuilder, validate |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme |
|---|
getEventInterceptorBuilders, getScopedServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, setAutoStart, setScopeName, setServiceName, setXml, validate |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme |
|---|
getSchemeName, isAnonymous, setSchemeName |
| Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme |
|---|
getEventInterceptorBuilders, getScopedServiceName, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart |
| Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme |
|---|
getSchemeName, isAnonymous |
| Constructor Detail |
|---|
public TransactionalScheme()
| Method Detail |
|---|
public java.lang.String getServiceType()
public Service realizeService(com.tangosol.config.expression.ParameterResolver resolver,
java.lang.ClassLoader loader,
Cluster cluster)
realizeService in interface ServiceBuilderrealizeService in class AbstractServiceSchemeresolver - the ParameterResoverloader - the ClassLoadercluster - the Cluster which will already be running if necessarypublic boolean isRunningClusterNeeded()
isRunningClusterNeeded in interface ServiceBuilderisRunningClusterNeeded in class AbstractServiceScheme
public 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 Maps.
realizeCache in interface NamedCacheBuilderrealizeCache in class AbstractCachingSchemeresolver - the ParameterResolverdependencies - the MapBuilder dependenciesNamedCachepublic BackingMapManager realizeBackingMapManager(ConfigurableCacheFactory ccf)
BackingMapManager to be scoped by the specified ConfigurableCacheFactory.realizeBackingMapManager in interface BackingMapManagerBuilderrealizeBackingMapManager in class AbstractCachingSchemeccf - the ConfigurableCacheFactoryBackingMapManagerpublic int getHighUnits(com.tangosol.config.expression.ParameterResolver resolver)
resolver - the ParameterResolver
@Injectable
public void setHighUnits(com.tangosol.config.expression.Expression expr)
expr - the high units expression
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||