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: 

Are listeners always called in the same thread?

Olivier Barthelemy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2021

I implemented a listener in a plugin (@EventListener method).

I am using a member variable of the listener class to store some data to exchange between submethods during the event handling.

So i would like to know if there is a guarantee that the listener will always be run in the same thread, or if not, in which case my class member vairable is unsafe because it could mix data of multiple issue if multiple issue events occur in parallel

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
SERVER
VERSION
8.5.3
TAGS
AUG Leaders

Atlassian Community Events