@ExperimentalApi public interface OnCommitIssueEvent extends OnCommitEvent<IssueEvent>
OnCommitIssueEvent
is supposed to be fired on
commit if it's in a transaction, otherwise fired immediately.
While the IssueEvent
may be fired before commit.
This means that when listening to IssueEvent
event, inaccurate data may be retrieved from database,
while listening to OnCommitIssueEvent
guarantees the correct data.
There is no guarantee that the data in the wrapped JiraIssueEvent
has been updated after the commit,
and before publishing this message. However OnCommitEvent.getOnCommitEventDataReloadStatus()
and
OnCommitEvent.getOnCommitEventTransactionStatus()
can be used as a guide.
OnCommitEvent.OnCommitEventDataReloadStatus, OnCommitEvent.OnCommitEventTransactionStatus, OnCommitEvent.OnCommitEventTransactionStatusSettable<E>
getOnCommitEventDataReloadStatus, getOnCommitEventTransactionStatus, getWrappedEvent
Copyright © 2002-2017 Atlassian. All Rights Reserved.