Package org.drools.core.concurrent
Class ExecutorProviderImpl
- java.lang.Object
-
- org.drools.core.concurrent.ExecutorProviderImpl
-
- All Implemented Interfaces:
org.kie.api.concurrent.KieExecutors,org.kie.api.Service
public class ExecutorProviderImpl extends Object implements org.kie.api.concurrent.KieExecutors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecutorProviderImpl.DaemonThreadFactory
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_JEE_EXECUTOR_SERVICE_NAMEstatic StringEXECUTOR_SERVICE_PROPERTYstatic StringTHREAD_FACTORY_PROPERTY
-
Constructor Summary
Constructors Constructor Description ExecutorProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> CompletionService<T>getCompletionService()ExecutorServicegetExecutor()ExecutorServicenewFixedThreadPool()ExecutorServicenewFixedThreadPool(int nThreads)ExecutorServicenewSingleThreadExecutor()
-
-
-
Field Detail
-
EXECUTOR_SERVICE_PROPERTY
public static final String EXECUTOR_SERVICE_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_JEE_EXECUTOR_SERVICE_NAME
public static final String DEFAULT_JEE_EXECUTOR_SERVICE_NAME
- See Also:
- Constant Field Values
-
THREAD_FACTORY_PROPERTY
public static final String THREAD_FACTORY_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExecutor
public ExecutorService getExecutor()
- Specified by:
getExecutorin interfaceorg.kie.api.concurrent.KieExecutors
-
newSingleThreadExecutor
public ExecutorService newSingleThreadExecutor()
- Specified by:
newSingleThreadExecutorin interfaceorg.kie.api.concurrent.KieExecutors
-
newFixedThreadPool
public ExecutorService newFixedThreadPool()
- Specified by:
newFixedThreadPoolin interfaceorg.kie.api.concurrent.KieExecutors
-
newFixedThreadPool
public ExecutorService newFixedThreadPool(int nThreads)
- Specified by:
newFixedThreadPoolin interfaceorg.kie.api.concurrent.KieExecutors
-
getCompletionService
public <T> CompletionService<T> getCompletionService()
- Specified by:
getCompletionServicein interfaceorg.kie.api.concurrent.KieExecutors
-
-