@ExperimentalApi
public interface OnCommitEvent<T>
OnCommitIssueEvent
,
OnCommitJiraIssueEvent
,
OnCommitEventManager
Modifier and Type | Interface and Description |
---|---|
static class |
OnCommitEvent.OnCommitEventDataReloadStatus
Used to indicate to consumers of
OnCommitEvent whether the data contained in event was reloaded after commit
or not. |
static class |
OnCommitEvent.OnCommitEventTransactionStatus
Used to indicate to consumers of
OnCommitEvent whether this event was actually published after a transaction
commit, or if it was sent immediately, as not inside a transaction. |
static interface |
OnCommitEvent.OnCommitEventTransactionStatusSettable<E>
An implementable event for external developer that may wish to publish an
OnCommitEvent and be able to
update the OnCommitEvent.OnCommitEventTransactionStatus once it is known |
Modifier and Type | Method and Description |
---|---|
default OnCommitEvent.OnCommitEventDataReloadStatus |
getOnCommitEventDataReloadStatus()
Use this as an indication as to whether the data contained in this event has been reloaded after
the commit, and therefore can be considered current.
|
default OnCommitEvent.OnCommitEventTransactionStatus |
getOnCommitEventTransactionStatus()
Use this to check whether this event was published inside a transaction, and there actual event publishing was
actually delayed until the transaction completed.
|
T |
getWrappedEvent()
Returns the underlying wrapped event for this
OnCommitEvent . |
@Nonnull T getWrappedEvent()
OnCommitEvent
.OnCommitEvent
IssueEvent
,
JiraIssueEvent
@Nonnull default OnCommitEvent.OnCommitEventDataReloadStatus getOnCommitEventDataReloadStatus()
It is up to the caller to set this value, as otherwise the default is OnCommitEvent.OnCommitEventDataReloadStatus.UNSPECIFIED
@Nonnull default OnCommitEvent.OnCommitEventTransactionStatus getOnCommitEventTransactionStatus()
This status should be set by the system when event is actually published
Copyright © 2002-2022 Atlassian. All Rights Reserved.