Package com.atlassian.jira.event.commit
Interface OnCommitEvent<T>
- All Known Subinterfaces:
OnCommitEvent.OnCommitEventTransactionStatusSettable<E>,OnCommitIssueEvent,OnCommitJiraIssueEvent
@ExperimentalApi
public interface OnCommitEvent<T>
Base type for the OnCommit events
- Since:
- v7.4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumUsed to indicate to consumers ofOnCommitEventwhether the data contained in event was reloaded after commit or not.static enumUsed to indicate to consumers ofOnCommitEventwhether this event was actually published after a transaction commit, or if it was sent immediately, as not inside a transaction.static interfaceAn implementable event for external developer that may wish to publish anOnCommitEventand be able to update theOnCommitEvent.OnCommitEventTransactionStatusonce it is known -
Method Summary
Modifier and TypeMethodDescriptionUse 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.Use this to check whether this event was published inside a transaction, and there actual event publishing was actually delayed until the transaction completed.Returns the underlying wrapped event for thisOnCommitEvent.
-
Method Details
-
getWrappedEvent
Returns the underlying wrapped event for thisOnCommitEvent.- Returns:
- The wrapped event associated with this
OnCommitEvent - See Also:
-
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.It is up to the caller to set this value, as otherwise the default is
OnCommitEvent.OnCommitEventDataReloadStatus.UNSPECIFIED- Returns:
- The data reload status for this event
-
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.This status should be set by the system when event is actually published
- Returns:
- The transaction status for this event
-