In the New Relic Java SDK for plugin development, the pollCycle()
method is invoked once for each Agent that is added via the runner.add()
method. The runner will call the pollCycle()
method once for each component created by these agent factories.
You can verify that this is the case by only adding one of the two factories and seeing that pollCycle()
is called only once.