Interface ConcurrencyImplementation


public interface ConcurrencyImplementation
The interface for a Jakarta Concurrency Implementation
Author:
Eduardo Martins
  • Field Details

  • 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-resources
      context - 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
      Parses XML element for EE subsystem schema 2.0
      Parameters:
      reader - the stream reader
      operations - the list to add operations
      subsystemPathAddress - 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
      Parses XML element for EE subsystem schema 4.0
      Parameters:
      reader - the stream reader
      operations - the list to add operations
      subsystemPathAddress - 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
      Parses XML element for EE subsystem schema 5.0
      Parameters:
      reader - the stream reader
      operations - the list to add operations
      subsystemPathAddress - 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
      Parses XML element for EE subsystem schema 6.0
      Parameters:
      reader - the stream reader
      operations - the list to add operations
      subsystemPathAddress - 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
      Writes XML element.
      Parameters:
      writer - the stream writer
      eeSubSystem - the model note to write
      Throws:
      XMLStreamException - if an error occurs
    • newContextService

      WildFlyContextService newContextService(String name, ContextServiceTypesConfiguration contextServiceTypesConfiguration)
      Parameters:
      name - the instance name
      contextServiceTypesConfiguration - 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 name
      contextService - the context service to use
      priority - 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 name
      managedThreadFactory - the thread factory to use
      hungTaskThreshold - the hung task threshold
      longRunningTasks - flag which hints the duration of tasks executed by the executor.
      corePoolSize - the core thread-pool size to use
      maxPoolSize - the max thread-pool size to use
      keepAliveTime - the thread keep-alive time
      keepAliveTimeUnit - the thread keep-alive time unit
      threadLifeTime - the thread lifetime
      contextService - the context service to use
      rejectPolicy - the policy to be applied to aborted tasks.
      queue - the task queue
      controlPoint - the control point
      processStateNotifier - 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 name
      managedThreadFactory - the thread factory to use
      hungTaskThreshold - the hung task threshold
      longRunningTasks - flag which hints the duration of tasks executed by the executor.
      corePoolSize - the core thread-pool size to use
      maxPoolSize - the max thread-pool size to use
      keepAliveTime - the thread keep-alive time
      keepAliveTimeUnit - the thread keep-alive time unit
      threadLifeTime - the thread lifetime
      queueCapacity - the task queue capacity
      contextService - the context service to use
      rejectPolicy - the policy to be applied to aborted tasks.
      controlPoint - the control point
      processStateNotifier - 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 name
      managedThreadFactory - the thread factory to use
      hungTaskThreshold - the hung task threshold
      longRunningTasks - flag which hints the duration of tasks executed by the executor.
      corePoolSize - the core thread-pool size to use
      keepAliveTime - the thread keep-alive time
      keepAliveTimeUnit - the thread keep-alive time unit
      threadLifeTime - the thread lifetime
      contextService - the context service to use
      rejectPolicy - the policy to be applied to aborted tasks.
      controlPoint - the control point
      processStateNotifier - the process state notifier
      Returns:
      a new WildFlyManagedScheduledExecutorService instance with the specified params.