Package org.uberfire.commons.concurrent
Class ExecutorServiceProducer
- java.lang.Object
-
- org.uberfire.commons.concurrent.ExecutorServiceProducer
-
public class ExecutorServiceProducer extends Object
ExecutorService Producer. It produces managed and unmanaged executor services. For now the implementation is the same but it could change if any other container gets under support. They are in different variables on purpose.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringFS_WATCH_LIMIT_PROPERTYprotected static StringINDEXING_LIMIT_PROPERTYprotected static StringMANAGED_LIMIT_PROPERTYprotected static StringREST_API_LIMIT_PROPERTYprotected static StringUNMANAGED_LIMIT_PROPERTY
-
Constructor Summary
Constructors Constructor Description ExecutorServiceProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExecutorServicebuildFixedThreadPoolExecutorService(String key)protected ExecutorServicebuildFixedThreadPoolExecutorService(String key, int defaultLimit)protected ExecutorServicegetFsWatchExecutorService()protected ExecutorServicegetIndexingExecutorService()protected ExecutorServicegetManagedExecutorService()protected ExecutorServicegetRestApiExecutorService()protected ExecutorServicegetUnmanagedExecutorService()ExecutorServiceproduceExecutorService()ExecutorServiceproduceFsWatchExecutorService()ExecutorServiceproduceIndexingExecutorService()ExecutorServiceproduceRestAPiExecutorService()ExecutorServiceproduceUnmanagedExecutorService()
-
-
-
Field Detail
-
MANAGED_LIMIT_PROPERTY
protected static final String MANAGED_LIMIT_PROPERTY
- See Also:
- Constant Field Values
-
UNMANAGED_LIMIT_PROPERTY
protected static final String UNMANAGED_LIMIT_PROPERTY
- See Also:
- Constant Field Values
-
INDEXING_LIMIT_PROPERTY
protected static final String INDEXING_LIMIT_PROPERTY
- See Also:
- Constant Field Values
-
FS_WATCH_LIMIT_PROPERTY
protected static final String FS_WATCH_LIMIT_PROPERTY
- See Also:
- Constant Field Values
-
REST_API_LIMIT_PROPERTY
protected static final String REST_API_LIMIT_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildFixedThreadPoolExecutorService
protected ExecutorService buildFixedThreadPoolExecutorService(String key)
-
buildFixedThreadPoolExecutorService
protected ExecutorService buildFixedThreadPoolExecutorService(String key, int defaultLimit)
-
produceExecutorService
@Produces @ApplicationScoped @Managed public ExecutorService produceExecutorService()
-
produceUnmanagedExecutorService
@Produces @ApplicationScoped @Unmanaged public ExecutorService produceUnmanagedExecutorService()
-
produceIndexingExecutorService
@Produces @ApplicationScoped @Indexing public ExecutorService produceIndexingExecutorService()
-
produceFsWatchExecutorService
@Produces @ApplicationScoped @FSWatch public ExecutorService produceFsWatchExecutorService()
-
produceRestAPiExecutorService
@Produces @ApplicationScoped @RestApi public ExecutorService produceRestAPiExecutorService()
-
getManagedExecutorService
protected ExecutorService getManagedExecutorService()
-
getUnmanagedExecutorService
protected ExecutorService getUnmanagedExecutorService()
-
getIndexingExecutorService
protected ExecutorService getIndexingExecutorService()
-
getFsWatchExecutorService
protected ExecutorService getFsWatchExecutorService()
-
getRestApiExecutorService
protected ExecutorService getRestApiExecutorService()
-
-