@Singleton public class ExecutorProvider extends Object
| Constructor and Description |
|---|
ExecutorProvider() |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
createAdHocExecutor(int size) |
ExecutorService |
getGlobalExecutor() |
ScheduledExecutorService |
getTimeoutExecutor() |
void |
setUp() |
void |
tearDown() |
@PostConstruct public void setUp()
@PreDestroy public void tearDown()
public ExecutorService createAdHocExecutor(int size)
public ExecutorService getGlobalExecutor()
public ScheduledExecutorService getTimeoutExecutor()
Copyright © 2018–2020. All rights reserved.