Class ReplicatedScheme
java.lang.Object
com.tangosol.coherence.config.scheme.AbstractScheme
com.tangosol.coherence.config.scheme.AbstractServiceScheme<com.tangosol.internal.net.service.grid.ReplicatedCacheDependencies>
com.tangosol.coherence.config.scheme.AbstractCachingScheme<com.tangosol.internal.net.service.grid.ReplicatedCacheDependencies>
com.tangosol.coherence.config.scheme.ReplicatedScheme
- All Implemented Interfaces:
BackingMapManagerBuilder
,MapBuilder
,NamedCacheBuilder
,ServiceBuilder
,CachingScheme
,ClusteredCachingScheme
,ObservableCachingScheme
,Scheme
,ServiceScheme
- Direct Known Subclasses:
OptimisticScheme
public class ReplicatedScheme
extends AbstractCachingScheme<com.tangosol.internal.net.service.grid.ReplicatedCacheDependencies>
implements ClusteredCachingScheme
The
ReplicatedScheme
class builds replicated cache.- 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_serviceDependencies
Fields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn theBackingMapScheme
which builds the backing map for the clustered scheme.Return the service type.boolean
Return true if a running cluster is needed before using a service.void
setBackingMapScheme
(BackingMapScheme scheme) Set theBackingMapScheme
which builds the backing map for the clustered scheme.Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, realizeMap, setListenerBuilder, validate
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
ensureService, getDefaultServiceName, getEventInterceptorBuilders, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getEventInterceptorBuilders, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
-
Constructor Details
-
ReplicatedScheme
public ReplicatedScheme()Constructs aReplicatedScheme
.
-
-
Method Details
-
getServiceType
Return the service type.- Specified by:
getServiceType
in interfaceServiceScheme
- Returns:
- the service type
-
isRunningClusterNeeded
public boolean isRunningClusterNeeded()Return true if a running cluster is needed before using a service.- Specified by:
isRunningClusterNeeded
in interfaceServiceBuilder
- Specified by:
isRunningClusterNeeded
in classAbstractServiceScheme<com.tangosol.internal.net.service.grid.ReplicatedCacheDependencies>
- Returns:
true
if a running cluster is needed before using a service
-
getBackingMapScheme
Return theBackingMapScheme
which builds the backing map for the clustered scheme.- Specified by:
getBackingMapScheme
in interfaceClusteredCachingScheme
- Returns:
- the scheme
-
setBackingMapScheme
Set theBackingMapScheme
which builds the backing map for the clustered scheme.- Parameters:
scheme
- the scheme builder
-