[FLINK-19220] Add an internal interface

This commits adds an internal interface that
indicate that the implementer is managing
resources. The implementers of that interface
require to be notified explicitly when a task
shuts down. (via the .shutdown() method)
1 file changed