Sorry, I wrote PollScheduleIterator instead of PollSchedulerTask.
Gianfranco Boccalon ha scritto:
About second question: I suspect that the file component doesnt need
really the executor object, because in the PollingEndpoint class I
found that in the start method, the object PollScheduleIterator is
instantiated, and this object uses the executor to invoke the poll
method.
Gianfranco
Gianfranco Boccalon ha scritto:
Hi,
I implemented a new binding component starting from the file BC.
I'm using this new BC in only 1 service assembly: the problem is that
the poll() method of my component is called always twice (every 5
seconds in my configuration).
I dont understand the reason.
Another question: the file BC in the method pollFile uses an object
Executor to start the polling of a directory.
Is this for performance reasons ?
I ask this because I saw that also without using the executor, my
code works right because the method poll() is executed on the time
interval configured (ok, almost right, now it's called twice).
Thanks