Package org.jboss.as.ee.concurrent
Class ManagedThreadFactoryImpl
- java.lang.Object
-
- org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl
-
- org.jboss.as.ee.concurrent.ManagedThreadFactoryImpl
-
- All Implemented Interfaces:
jakarta.enterprise.concurrent.ManagedThreadFactory
,ForkJoinPool.ForkJoinWorkerThreadFactory
,ThreadFactory
public class ManagedThreadFactoryImpl extends org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl
ManagedThreadFactory
implementation ensuringSecurityIdentity
propagation into new threads.- Author:
- Jan Kalina, emmartins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ManagedThreadFactoryImpl.ManagedThread
Managed thread extension, to allow canceling the task running in the thread.
-
Constructor Summary
Constructors Constructor Description ManagedThreadFactoryImpl(String name, org.glassfish.enterprise.concurrent.ContextServiceImpl contextService, int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.glassfish.enterprise.concurrent.AbstractManagedThread
createThread(Runnable r, org.glassfish.enterprise.concurrent.spi.ContextHandle contextHandleForSetup)
int
getPriority()
void
taskDone(Thread t)
void
taskStarting(Thread t, org.glassfish.enterprise.concurrent.internal.ManagedFutureTask task)
-
-
-
Constructor Detail
-
ManagedThreadFactoryImpl
public ManagedThreadFactoryImpl(String name, org.glassfish.enterprise.concurrent.ContextServiceImpl contextService, int priority)
-
-
Method Detail
-
getPriority
public int getPriority()
- Returns:
- the priority set on new threads
-
createThread
protected org.glassfish.enterprise.concurrent.AbstractManagedThread createThread(Runnable r, org.glassfish.enterprise.concurrent.spi.ContextHandle contextHandleForSetup)
- Overrides:
createThread
in classorg.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl
-
taskStarting
public void taskStarting(Thread t, org.glassfish.enterprise.concurrent.internal.ManagedFutureTask task)
- Overrides:
taskStarting
in classorg.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl
-
taskDone
public void taskDone(Thread t)
- Overrides:
taskDone
in classorg.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl
-
-