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