The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Make Jira Listeners Asynchronous

IshanL
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 6, 2013

Hi All,

Is there any way that we can make listners async? I found https://bitbucket.org/atlassianlabs/async-events-tutorial and just wanted to check whether any other way.

Thanks,

Ishan

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Deleted user
January 14, 2015

@AsynchronousPreferred mentioned in the tutorial is probably your best choice. I don't see any reasons not to use it, it's very simple. As mentioned in this answer if you have an originally synchronous event, you can then re-publish it via EventPublisher creating your own Asynchronous Event.

0 votes
Deleted user
January 14, 2015

New execution thread will be spawned by your own code instead of re-using JIRA's ThreadPool. More code, more bugs (e.g. memory leaks because of unstopped threads).

0 votes
MB
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 6, 2013

Aren't JIRA listeners already asynchronous? Anyway, you can always create a new execution thread and let it do the rest of the work to avoid blocking the caller of your listener handler.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.