Hi,
I am currently developping a plugin with this tutorial: https://developer.atlassian.com/display/JIRADEV/Writing+JIRA+event+listeners+with+the+atlassian-event+library
However I am concerned about the impact this plugin will have upon creating issues. Is there any way to create this listener so it will be handled async?
Kind regards.
Community moderators have prevented the ability to post new answers.
I just solved the problem by stumbling on this little tutorial: https://bitbucket.org/atlassianlabs/async-events-tutorial
It does exactly what is needed. Verified!
Bottom line: listen for sync event and async events, when the sync event is called, publish an async event, which is then picked up by the async event listener.
So, it is hard to create a singleton, put an ExecutorService into it, add some startup / shutdown hooks, start it on the plugin start, stop it on the plugin stop, submit a task via executorPool.submit(runnable) ?
That's pretty basic multithreaded stuff.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right, but you're spawning your own threads instead of re-using JIRA's thread pool.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same question. Do you have an answer by now, TimB?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.