Package org.jboss.as.ee.concurrent
Interface ConcurrencyImplementation
public interface ConcurrencyImplementation
The interface for a Jakarta Concurrency Implementation
- Author:
- Eduardo Martins
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeploymentProcessors(org.jboss.as.server.DeploymentProcessorTarget processorTarget) Adds the concurrency related deployment unit processors.voidinstallSubsystemServices(org.jboss.as.controller.OperationContext context) Installs boot-time concurrency related subsystem servicesnewContextService(String name, ContextServiceTypesConfiguration contextServiceTypesConfiguration) newManagedExecutorService(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, int queueCapacity, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) newManagedExecutorService(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, BlockingQueue<Runnable> queue, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) newManagedScheduledExecutorService(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) newManagedThreadFactory(String name, WildFlyContextService contextService, int priority) voidparseConcurrentElement20(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) ParsesXML element for EE subsystem schema 2.0 voidparseConcurrentElement40(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) ParsesXML element for EE subsystem schema 4.0 voidparseConcurrentElement50(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) ParsesXML element for EE subsystem schema 5.0 voidparseConcurrentElement60(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) ParsesXML element for EE subsystem schema 6.0 voidregisterRootResourceSubModels(org.jboss.as.controller.registry.ManagementResourceRegistration rootResource, org.jboss.as.controller.ExtensionContext context) Register the existence of the concurrency related sub-resources, with the provided root resource.voidwriteConcurrentElement(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode eeSubSystem) WritesXML element.
-
Field Details
-
INSTANCE
-
-
Method Details
-
registerRootResourceSubModels
void registerRootResourceSubModels(org.jboss.as.controller.registry.ManagementResourceRegistration rootResource, org.jboss.as.controller.ExtensionContext context) Register the existence of the concurrency related sub-resources, with the provided root resource.- Parameters:
rootResource- the root resource to register concurrency sub-resourcescontext- the context of the root resource's extension
-
addDeploymentProcessors
void addDeploymentProcessors(org.jboss.as.server.DeploymentProcessorTarget processorTarget) Adds the concurrency related deployment unit processors.- Parameters:
processorTarget- the processor target to add deployment unit processors
-
installSubsystemServices
void installSubsystemServices(org.jboss.as.controller.OperationContext context) Installs boot-time concurrency related subsystem services- Parameters:
context- the boot-time subsystem add operation context
-
parseConcurrentElement20
void parseConcurrentElement20(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) throws XMLStreamException ParsesXML element for EE subsystem schema 2.0 - Parameters:
reader- the stream readeroperations- the list to add operationssubsystemPathAddress- the subsystem path address- Throws:
XMLStreamException- if an error occurs
-
parseConcurrentElement40
void parseConcurrentElement40(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) throws XMLStreamException ParsesXML element for EE subsystem schema 4.0 - Parameters:
reader- the stream readeroperations- the list to add operationssubsystemPathAddress- the subsystem path address- Throws:
XMLStreamException- if an error occurs
-
parseConcurrentElement50
void parseConcurrentElement50(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) throws XMLStreamException ParsesXML element for EE subsystem schema 5.0 - Parameters:
reader- the stream readeroperations- the list to add operationssubsystemPathAddress- the subsystem path address- Throws:
XMLStreamException- if an error occurs
-
parseConcurrentElement60
void parseConcurrentElement60(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> operations, org.jboss.as.controller.PathAddress subsystemPathAddress) throws XMLStreamException ParsesXML element for EE subsystem schema 6.0 - Parameters:
reader- the stream readeroperations- the list to add operationssubsystemPathAddress- the subsystem path address- Throws:
XMLStreamException- if an error occurs
-
writeConcurrentElement
void writeConcurrentElement(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode eeSubSystem) throws XMLStreamException WritesXML element. - Parameters:
writer- the stream writereeSubSystem- the model note to write- Throws:
XMLStreamException- if an error occurs
-
newContextService
WildFlyContextService newContextService(String name, ContextServiceTypesConfiguration contextServiceTypesConfiguration) - Parameters:
name- the instance namecontextServiceTypesConfiguration- the context service's types configuration- Returns:
- a new WildFlyContextService instance with the specified params.
-
newManagedThreadFactory
WildFlyManagedThreadFactory newManagedThreadFactory(String name, WildFlyContextService contextService, int priority) - Parameters:
name- the instance namecontextService- the context service to usepriority- the thread factory priority- Returns:
- a new WildFlyManagedThreadFactory instance with the specified params.
-
newManagedExecutorService
WildFlyManagedExecutorService newManagedExecutorService(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, BlockingQueue<Runnable> queue, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) - Parameters:
name- the instance namemanagedThreadFactory- the thread factory to usehungTaskThreshold- the hung task thresholdlongRunningTasks- flag which hints the duration of tasks executed by the executor.corePoolSize- the core thread-pool size to usemaxPoolSize- the max thread-pool size to usekeepAliveTime- the thread keep-alive timekeepAliveTimeUnit- the thread keep-alive time unitthreadLifeTime- the thread lifetimecontextService- the context service to userejectPolicy- the policy to be applied to aborted tasks.queue- the task queuecontrolPoint- the control pointprocessStateNotifier- the process state notifier- Returns:
- a new WildFlyManagedExecutorService instance with the specified params.
-
newManagedExecutorService
WildFlyManagedExecutorService newManagedExecutorService(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, int queueCapacity, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) - Parameters:
name- the instance namemanagedThreadFactory- the thread factory to usehungTaskThreshold- the hung task thresholdlongRunningTasks- flag which hints the duration of tasks executed by the executor.corePoolSize- the core thread-pool size to usemaxPoolSize- the max thread-pool size to usekeepAliveTime- the thread keep-alive timekeepAliveTimeUnit- the thread keep-alive time unitthreadLifeTime- the thread lifetimequeueCapacity- the task queue capacitycontextService- the context service to userejectPolicy- the policy to be applied to aborted tasks.controlPoint- the control pointprocessStateNotifier- the process state notifier- Returns:
- a new WildFlyManagedExecutorService instance with the specified params.
-
newManagedScheduledExecutorService
WildFlyManagedScheduledExecutorService newManagedScheduledExecutorService(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) - Parameters:
name- the instance namemanagedThreadFactory- the thread factory to usehungTaskThreshold- the hung task thresholdlongRunningTasks- flag which hints the duration of tasks executed by the executor.corePoolSize- the core thread-pool size to usekeepAliveTime- the thread keep-alive timekeepAliveTimeUnit- the thread keep-alive time unitthreadLifeTime- the thread lifetimecontextService- the context service to userejectPolicy- the policy to be applied to aborted tasks.controlPoint- the control pointprocessStateNotifier- the process state notifier- Returns:
- a new WildFlyManagedScheduledExecutorService instance with the specified params.
-