Closed mrniko closed 11 years ago
I was wrong about this feature. I think it's up to developer to implement this.
Hi mrniko, Thanks for using EasyFlow and giving your feedback. This method cannot be added to Event class as, according to the current design, this sort of functionality (when and on which thread handlers are executed) should be implemented within Executors. Therefore, I can see 2 options to implement delay on event triggering:
Regards, Andrey
Hi Nikita, Thanks for using EasyFlow and giving your feedback. Please see my reply on GitHub.
Regards, Andrey
On 11 May 2013 18:55, Nikita Koksharov notifications@github.com wrote:
I was wrong about this feature. I think it's up to developer to implement this.
— Reply to this email directly or view it on GitHubhttps://github.com/Beh01der/EasyFlow/issues/4#issuecomment-17756591 .
Thanks for this awesome and really lightweight engine!!!
But for my requirements i need to have a support of event triggering scheduling. I suggest to add a special method for this in Event class:
public void scheduledTrigger(final C context, long delay, TimeUnit unit) { scheduledExecutorService.schedule(new Runnable() { trigger(context); }, delay, unit); }
scheduledExecutorService - should be configurable like executor in EasyFlow object.
What do you think about such feature?