@ExperimentalApi @InjectableComponent @ParametersAreNonnullByDefault public interface OnCommitEventManager
OnCommitIssueEventBundleevents, that if inside a transaction will not actually be published until the transaction has finished. If not inside a transaction, the events will be published immediately.
NB: If you would like to fire an issue related event, it is recommended to use
IssueEventManager.dispatchIssueEventBundleOnCommit(Supplier) as these will provide better semantics for
the wrapped issue specific events.
|Modifier and Type||Method and Description|
Will wrap the provided event into a default
Will publish the event immediately if not inside a transaction, otherwise will be published once the current transactions has finished.
void dispatchAsOnCommitEvent(java.util.function.Supplier<Object> eventSupplier)
OnCommitEventobject, for publishing.
Supplier will be invoked when the event is about to be published.
eventSupplier- The supplier of the event object to wrap into an
<T> void dispatchOnCommitEvent(java.util.function.Supplier<OnCommitEvent<T>> onCommitEventSupplier)
Supplier will be invoked when the event is about to be published, so any data that should be reloaded
can be done inside it. Potentially the
OnCommitEvent.getOnCommitEventDataReloadStatus() can be set to
OnCommitEvent.OnCommitEventDataReloadStatus.RELOADED_ON_COMMIT for the event.
T- The wrapped type of the event
onCommitEventSupplier- The supplier of the
OnCommitEventevent to send
Copyright © 2002-2019 Atlassian. All Rights Reserved.