@InterfaceStability.Unstable public interface ContextManager
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Allows closing the custom context that is shared across multiple operator functions in a task.
|
void |
init(Config config,
TaskContext context)
Allows initializing and setting a custom context that is shared across multiple operator functions in a task.
|
void init(Config config, TaskContext context)
This method is invoked before any InitableFunctions are initialized.
Use TaskContext.setUserContext(Object) to set the context here and TaskContext.getUserContext() to
get it in InitableFunctions.
config - the Config for the applicationcontext - the TaskContext for this taskvoid close()