Class ManagedScheduledExecutorServiceService
java.lang.Object
org.jboss.as.ee.concurrent.service.ManagedScheduledExecutorServiceService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter>,org.jboss.msc.value.Value<org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter>
Service responsible for creating, starting and stopping a ManagedScheduledExecutorServiceImpl.
Note that the service's value is the executor's adapter, which does not allows lifecyle related invocations.
- Author:
- Eduardo Martins
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionManagedScheduledExecutorServiceService(Consumer<org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter> consumer, Supplier<org.glassfish.enterprise.concurrent.ContextServiceImpl> contextServiceSupplier, Supplier<ManagedThreadFactoryImpl> managedThreadFactorySupplier, Supplier<org.jboss.as.controller.ProcessStateNotifier> processStateNotifierSupplier, Supplier<org.wildfly.extension.requestcontroller.RequestController> requestControllerSupplier, String name, String jndiName, long hungTaskThreshold, long hungTaskTerminationPeriod, boolean longRunningTasks, int corePoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy, Integer threadPriority, Supplier<ManagedExecutorHungTasksPeriodicTerminationService> hungTasksPeriodicTerminationService) -
Method Summary
Modifier and TypeMethodDescriptionDelegatingSupplier<org.glassfish.enterprise.concurrent.ContextServiceImpl>org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdaptergetValue()voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Constructor Details
-
ManagedScheduledExecutorServiceService
public ManagedScheduledExecutorServiceService(Consumer<org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter> consumer, Supplier<org.glassfish.enterprise.concurrent.ContextServiceImpl> contextServiceSupplier, Supplier<ManagedThreadFactoryImpl> managedThreadFactorySupplier, Supplier<org.jboss.as.controller.ProcessStateNotifier> processStateNotifierSupplier, Supplier<org.wildfly.extension.requestcontroller.RequestController> requestControllerSupplier, String name, String jndiName, long hungTaskThreshold, long hungTaskTerminationPeriod, boolean longRunningTasks, int corePoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy, Integer threadPriority, Supplier<ManagedExecutorHungTasksPeriodicTerminationService> hungTasksPeriodicTerminationService) - Parameters:
consumer-contextServiceSupplier-managedThreadFactorySupplier-processStateNotifierSupplier-requestControllerSupplier-name-jndiName-hungTaskThreshold-longRunningTasks-corePoolSize-keepAliveTime-keepAliveTimeUnit-threadLifeTime-rejectPolicy-threadPriority-- See Also:
-
ManagedScheduledExecutorServiceImpl#ManagedScheduledExecutorServiceImpl(String, org.jboss.as.ee.concurrent.ManagedThreadFactoryImpl, long, boolean, int, long, java.util.concurrent.TimeUnit, long, org.glassfish.enterprise.concurrent.ContextServiceImpl, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint)
-
-
Method Details
-
getValue
public org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter getValue() throws IllegalStateException- Throws:
IllegalStateException
-
getExecutorService
- Throws:
IllegalStateException
-
getContextServiceSupplier
public DelegatingSupplier<org.glassfish.enterprise.concurrent.ContextServiceImpl> getContextServiceSupplier() -
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-