OnStopped
annotation.@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @Inherited @Deprecated public @interface OnStopped
Marker annotation a processor implementation can use to indicate a method
should be called whenever the processor is no longer scheduled to run.
Methods marked with this annotation will be invoked each time the processor
is stopped and will be invoked only after the last thread has returned from
the onTrigger
method.
This means that the thread executing in this method will be the only thread executing in any part of the Processor. However, since other threads may later execute other parts of the code, member variables must still be protected appropriately. However, access to multiple variables need not be atomic.
To indicate that a method should be called immediately when a processor is no
longer scheduled to run, see the OnUnscheduled
annotation.
Copyright © 2015 Apache NiFi Project. All rights reserved.