Annotation Interface OnShutdown


@Documented @Target(METHOD) @Retention(RUNTIME) @Inherited public @interface OnShutdown

Marker annotation a Processor, ControllerService, ParameterProvider, or ReportingTask implementation can use to indicate a method should be called whenever the flow is being shutdown. This will be called at most once for each component in a JVM lifetime. It is not, however, guaranteed that this method will be called on shutdown, as the service may be killed suddenly.

Methods with this annotation are permitted to take either 0 or 1 argument. If an argument is used, it must be of type ConfigurationContext if the component is a ReportingTask or Controller Service, or of type ProcessContext if the component is a Processor.