@Deprecated
public interface ClosableTask
StreamTask
, allowing the method implementer to specify
code that will be called when the StreamTask is being shut down by the framework, providing to emit final metrics,
clean or close resources, etc. The close method is not guaranteed to be called in event of crash or hard kill
of the process.
Deprecated: It's recommended to manage the lifecycle of any runtime objects using
ApplicationContainerContext
and ApplicationTaskContext
instead.Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|