public class ExecutorProviderImpl extends Object implements org.kie.api.concurrent.KieExecutors
Modifier and Type | Class and Description |
---|---|
static class |
ExecutorProviderImpl.DaemonThreadFactory |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_JEE_EXECUTOR_SERVICE_NAME |
static String |
EXECUTOR_SERVICE_PROPERTY |
static String |
THREAD_FACTORY_PROPERTY |
Constructor and Description |
---|
ExecutorProviderImpl() |
Modifier and Type | Method and Description |
---|---|
<T> CompletionService<T> |
getCompletionService() |
ExecutorService |
getExecutor() |
ExecutorService |
newFixedThreadPool() |
ExecutorService |
newFixedThreadPool(int nThreads) |
ExecutorService |
newSingleThreadExecutor() |
public static final String EXECUTOR_SERVICE_PROPERTY
public static final String DEFAULT_JEE_EXECUTOR_SERVICE_NAME
public static final String THREAD_FACTORY_PROPERTY
public ExecutorService getExecutor()
getExecutor
in interface org.kie.api.concurrent.KieExecutors
public ExecutorService newSingleThreadExecutor()
newSingleThreadExecutor
in interface org.kie.api.concurrent.KieExecutors
public ExecutorService newFixedThreadPool()
newFixedThreadPool
in interface org.kie.api.concurrent.KieExecutors
public ExecutorService newFixedThreadPool(int nThreads)
newFixedThreadPool
in interface org.kie.api.concurrent.KieExecutors
public <T> CompletionService<T> getCompletionService()
getCompletionService
in interface org.kie.api.concurrent.KieExecutors
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.