@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface OnUnscheduled
Marker annotation a Processor
or
ReportingTask
should be
called whenever the component is no longer scheduled to run. Methods marked
with this annotation will be invoked each time the framework is notified to
stop scheduling the component. This method is invoked as other threads are
potentially running. To invoke a method after all threads have finished
processing, see the OnStopped
annotation.
Methods using this annotation must take either 0 arguments or a single argument.
If using 1 argument and the component using the annotation is a Processor,
that argument must be of type
ProcessContext
.
If using 1 argument and the component using the annotation is a Reporting
Task, that argument must be of type
ConfigurationContext
.
Implementation Guidelines:
onTrigger
method instead.InterruptedException
.Copyright © 2022 Apache NiFi Project. All rights reserved.