Class PagedQueueScheme
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.PagedQueueScheme
- All Implemented Interfaces:
BackingMapManagerBuilder,MapBuilder,NamedCacheBuilder,NamedCollectionBuilder<com.tangosol.internal.net.queue.NamedMapQueue>,ServiceBuilder,BundlingScheme,CachingScheme,ClusteredCachingScheme,NamedQueueScheme<com.tangosol.internal.net.queue.NamedMapQueue>,ObservableCachingScheme,QueueScheme<com.tangosol.internal.net.queue.NamedMapQueue,,QueueService> Scheme,ServiceScheme
public class PagedQueueScheme
extends DistributedScheme
implements NamedQueueScheme<com.tangosol.internal.net.queue.NamedMapQueue>
A
PagedQueueScheme is responsible for building a queue.-
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 PagedQueueSchemeA singleton instance of thePagedQueueScheme.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.PagedQueueDependenciescreateConfiguration(ParameterResolver resolver, ClassLoader loader) Create aPagedQueueDependenciesbased 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) getPageSize(ParameterResolver resolver) Return the binary limit of the size of a page in a queue.Return the service type.<V> com.tangosol.internal.net.queue.NamedMapQueue<?, V> realize(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.voidsetEventInterceptorBuilders(List<NamedEventInterceptorBuilder> listBuilders) voidsetPageSize(Expression<Units> expr) Set the page size.Methods inherited from class com.tangosol.coherence.config.scheme.DistributedScheme
getBackingMapScheme, getBackupMapConfig, getBundleManager, getEventInterceptorBuilders, isRunningClusterNeeded, setBackingMapScheme, setBackupMapConfig, setBundleManagerMethods 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, setApplicationContext, 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 thePagedQueueScheme.
-
-
Constructor Details
-
PagedQueueScheme
public PagedQueueScheme()Constructs aPagedQueueScheme.
-
-
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.NamedMapQueue>- 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 PagedQueueScheme getNamedCollectionBuilder(Class<? extends NamedCollection> clz, com.oracle.coherence.common.util.Options<NamedCollection.Option> options) - Specified by:
getNamedCollectionBuilderin interfaceServiceScheme
-
getPageSize
Return the binary limit of the size of a page in a queue. Contains the target number of bytes that can be placed in a page before the page is deemed to be full. Legal values are positive integers.- Parameters:
resolver- the ParameterResolver- Returns:
- the page size
-
setPageSize
Set the page size.- Parameters:
expr- the page high units expression
-
setEventInterceptorBuilders
@Injectable("interceptors") public void setEventInterceptorBuilders(List<NamedEventInterceptorBuilder> listBuilders) Description copied from class:DistributedScheme- Overrides:
setEventInterceptorBuildersin classDistributedScheme- Parameters:
listBuilders- theListofNamedEventInterceptorBuilders
-
realize
public <V> com.tangosol.internal.net.queue.NamedMapQueue<?,V> 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.NamedMapQueue>- 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.NamedMapQueue,QueueService> - Parameters:
resolver- the ParameterResolverdeps- theMapBuilderdependencies- Returns:
- corresponding QueueService for this scheme
-
createConfiguration
public com.tangosol.internal.net.queue.PagedQueueDependencies createConfiguration(ParameterResolver resolver, ClassLoader loader) Create aPagedQueueDependenciesbased on the values contained in this scheme.- Parameters:
resolver- theParameterResolverto use to resolve configuration valuesloader- theClassLoaderto use- Returns:
- a
PagedQueueDependenciesbased on the values contained in this scheme
-