I have always stayed away from doing any threading inside a NiFi processor.
However, I recently came across a use-case where I'm calling a web service from within a custom Nifi Processor and I don't want to overwhelm the web service. I'd like to instrument a sleep in the onTrigger() or process() method of about 1 second, or a configurable amount. Is there a pattern established for Nifi Processors to accomplish this nicely? Thanks, Ryan