public final class ExecutionCaches extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheExecutor(String id,
ExecutorService service)
|
static void |
cacheInfo(String id,
ExecutionInfo info)
Cache
ExecutionInfo. |
static Callable<Object> |
getCallable(Object impl,
Method method,
Object[] args)
Get
Callable, callables for methods without arguments would be cached. |
static ExecutorService |
getExecutor(String id)
Get cached
ExecutorService. |
static ExecutionInfo |
getInfo(String id)
Get cached
ExecutionInfo. |
static void |
shutdownExecutor(ExecutorService toShutdown)
Shut down
ExecutorService. |
static void |
shutdownExecutor(String id)
Shut down
ExecutorService. |
static void |
tearDown()
Tear down
ExecutionCaches. |
public static ExecutionInfo getInfo(String id)
ExecutionInfo.id - execution identifierOrchestrationConfig instance or nullpublic static void cacheInfo(String id, ExecutionInfo info)
ExecutionInfo.id - execution identifierinfo - ExecutionInfo instancepublic static ExecutorService getExecutor(String id)
ExecutorService.id - execution identifierExecutorService instance or nullpublic static void cacheExecutor(String id, ExecutorService service)
id - execution identifierservice - ExecutorService instancepublic static void shutdownExecutor(String id)
ExecutorService.id - execution identifierpublic static void shutdownExecutor(ExecutorService toShutdown)
ExecutorService.toShutdown - ExecutorService instancepublic static Callable<Object> getCallable(Object impl, Method method, Object[] args)
Callable, callables for methods without arguments would be cached.impl - implementationmethod - methodargs - method argumentsCallablepublic static void tearDown()
ExecutionCaches.Copyright © 2013–2019 BB Corp. All rights reserved.