public interface ExecutorFactory
META-INF/services/io.smallrye.faulttolerance.ExecutorFactory with its fully qualified name inside.| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
createCoreExecutor(int size)
Create an executor service of the given size
This executor may have a small core pool size and, if possible, should not be queued
|
ExecutorService |
createExecutor(int coreSize,
int size)
similar to
createCoreExecutor(int) but creating an executor with unlimited (or large) queue size
with defined core pool size |
ScheduledExecutorService |
createTimeoutExecutor(int size)
create a scheduled executor service for handling timeouts
|
int |
priority()
priority of this factory.
|
ExecutorService createCoreExecutor(int size)
size - amount of threads in the poolExecutorService createExecutor(int coreSize, int size)
createCoreExecutor(int) but creating an executor with unlimited (or large) queue size
with defined core pool sizecoreSize - amount of threads in the pool's coresize - amount of threads in the poolScheduledExecutorService createTimeoutExecutor(int size)
size - the amount of threads in the poolint priority()
Copyright © 2018–2020. All rights reserved.