Adding Functionality to Apache NiFi
Also available as:
PDF
loading table of contents...

@OnRemoved

The @OnRemoved annotation causes a method to be invoked before a component is removed from the flow. This allows resources to be cleaned up before removing a component. Methods with this annotation must take zero arguments. If a method with this annotation throws an Exception, the component will still be removed.