Ah okay, that makes sense. Thanks for clarifying that for me
On Tue, 10 Dec 2019 at 10:29, Joe Witt wrote:
> Phil
>
> A single instance of a processor on a flow is like instantiating one
> instance of that processor class. Your member variable is for that
> instance of the processor. Each
Hi Joe,
But if I have multiple threads running for that processor, won’t each
instance have its own copy of that member variable?
Thanks,
Phil
On Mon, 9 Dec 2019 at 12:41, Joe Witt wrote:
> Phil
>
> You can have a class member variable and just protect access to it. This
> is quite common in
Take look at other processors that use AtomicX for such things ( like
the relationships), as here
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DistributeLoad.java
On December 8,
Phil
You can have a class member variable and just protect access to it. This
is quite common in many processors.
Thanks
On Sun, Dec 8, 2019 at 7:30 PM Phil H wrote:
> Hi there,
>
> I have a custom processor that I want to contain some shared data across
> threads (this data is based on