public final class ExecutorContext extends Object
| Constructor and Description |
|---|
ExecutorContext(JobConfiguration jobConfig) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> targetClass)
Get instance.
|
void |
reloadIfNecessary(JobConfiguration jobConfiguration)
Reload all reloadable item if necessary.
|
void |
shutdown()
Shutdown all closeable instances.
|
public ExecutorContext(JobConfiguration jobConfig)
public void reloadIfNecessary(JobConfiguration jobConfiguration)
jobConfiguration - job configurationpublic <T> T get(Class<T> targetClass)
T - target typetargetClass - target classpublic void shutdown()
Copyright © 2021 The Apache Software Foundation. All rights reserved.