Class SimpleDequeScheme
java.lang.Object
com.tangosol.coherence.config.scheme.AbstractScheme
com.tangosol.coherence.config.scheme.AbstractServiceScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
com.tangosol.coherence.config.scheme.AbstractCachingScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
com.tangosol.coherence.config.scheme.DistributedScheme
com.tangosol.coherence.config.scheme.SimpleDequeScheme
- All Implemented Interfaces:
 BackingMapManagerBuilder,MapBuilder,NamedCacheBuilder,NamedCollectionBuilder<com.tangosol.internal.net.queue.NamedMapDeque>,ServiceBuilder,BundlingScheme,CachingScheme,ClusteredCachingScheme,NamedQueueScheme<com.tangosol.internal.net.queue.NamedMapDeque>,ObservableCachingScheme,QueueScheme<com.tangosol.internal.net.queue.NamedMapDeque,,QueueService> Scheme,ServiceScheme
public class SimpleDequeScheme
extends DistributedScheme
implements NamedQueueScheme<com.tangosol.internal.net.queue.NamedMapDeque>
A 
SimpleDequeScheme is responsible for building a simple
 NamedMapDeque where the queue contents are stored in a
 single partition.- 
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.coherence.config.scheme.DistributedScheme
DistributedScheme.BackupConfigNested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder
MapBuilder.Dependencies - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleDequeSchemeA singleton instance of aSimpleDequeScheme.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 TypeMethodDescriptioncom.tangosol.internal.net.queue.NamedQueueDependenciescreateConfiguration(ParameterResolver resolver, ClassLoader loader) Create aNamedQueueDependenciesbased on the values contained in this scheme.ensureConfiguredService(ParameterResolver resolver, MapBuilder.Dependencies deps) Ensure service and its queue configuration.getNamedCollectionBuilder(Class<? extends NamedCollection> clz, com.oracle.coherence.common.util.Options<NamedCollection.Option> options) Return the service type.<V> com.tangosol.internal.net.queue.NamedMapDequerealize(ValueTypeAssertion<V> typeConstraint, ParameterResolver resolver, MapBuilder.Dependencies deps) Realizes aNamedCollection(possibly "ensuring it") based on the state of the builder, the providedParameterResolverandMapBuilderdependencies.<T extends NamedCollection>
booleanDetermines whether thisNamedCollectionBuildercan realize aNamedCollectionof the specified type.Methods inherited from class com.tangosol.coherence.config.scheme.DistributedScheme
getBackingMapScheme, getBackupMapConfig, getBundleManager, getEventInterceptorBuilders, isRunningClusterNeeded, setBackingMapScheme, setBackupMapConfig, setBundleManager, setEventInterceptorBuildersMethods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, realizeMap, setListenerBuilder, validateMethods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
ensureService, getDefaultServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, 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.NamedQueueScheme
realize, realize, realize, realizeMethods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymousMethods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getEventInterceptorBuilders, getScopedServiceName, getScopedServiceNameForProperty, getServiceBuilder, getServiceName, isAutoStart 
- 
Field Details
- 
INSTANCE
A singleton instance of aSimpleDequeScheme. 
 - 
 - 
Constructor Details
- 
SimpleDequeScheme
public SimpleDequeScheme()Constructs aSimpleDequeScheme. 
 - 
 - 
Method Details
- 
getServiceType
Return the service type.- Specified by:
 getServiceTypein interfaceServiceScheme- Overrides:
 getServiceTypein classDistributedScheme- Returns:
 - the service type
 
 - 
realizes
Description copied from interface:NamedCollectionBuilderDetermines whether thisNamedCollectionBuildercan realize aNamedCollectionof the specified type.- Specified by:
 realizesin interfaceNamedCollectionBuilder<com.tangosol.internal.net.queue.NamedMapDeque>- Type Parameters:
 T- the type of the class to verify- Parameters:
 type- theClassof the type to verify- Returns:
 - true if this builder can realize a 
NamedCollectionof the specified type. 
 - 
getNamedCollectionBuilder
public SimpleDequeScheme getNamedCollectionBuilder(Class<? extends NamedCollection> clz, com.oracle.coherence.common.util.Options<NamedCollection.Option> options) - Specified by:
 getNamedCollectionBuilderin interfaceServiceScheme
 - 
realize
public <V> com.tangosol.internal.net.queue.NamedMapDeque realize(ValueTypeAssertion<V> typeConstraint, ParameterResolver resolver, MapBuilder.Dependencies deps) Description copied from interface:NamedCollectionBuilderRealizes aNamedCollection(possibly "ensuring it") based on the state of the builder, the providedParameterResolverandMapBuilderdependencies.The
MapBuilderdependencies are required to satisfy the requirement when realizing aNamedCollectionadditionally involves realizing one or more internalMaps.- Specified by:
 realizein interfaceNamedCollectionBuilder<com.tangosol.internal.net.queue.NamedMapDeque>- Type Parameters:
 V- the element type ofNamedCollection- Parameters:
 typeConstraint- type constraint assertion for elements of thisNamedCollectionresolver- the ParameterResolverdeps- theMapBuilderdependencies- Returns:
 - a 
NamedCollection 
 - 
ensureConfiguredService
public QueueService ensureConfiguredService(ParameterResolver resolver, MapBuilder.Dependencies deps) Ensure service and its queue configuration.DistributedQueueConfiguration is registered in corresponding service's resource registry.
- Specified by:
 ensureConfiguredServicein interfaceQueueScheme<com.tangosol.internal.net.queue.NamedMapDeque,QueueService> - Parameters:
 resolver- the ParameterResolverdeps- theMapBuilderdependencies- Returns:
 - corresponding QueueService for this scheme
 
 - 
createConfiguration
public com.tangosol.internal.net.queue.NamedQueueDependencies createConfiguration(ParameterResolver resolver, ClassLoader loader) Create aNamedQueueDependenciesbased on the values contained in this scheme.- Parameters:
 resolver- theParameterResolverto use to resolve configuration valuesloader- theClassLoaderto use- Returns:
 - a 
NamedQueueDependenciesbased on the values contained in this scheme 
 
 -