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:
  • Method Details

    • getWrappedEvent

      @Nonnull T getWrappedEvent()
      Returns the underlying wrapped event for this OnCommitEvent.
      Returns:
      The wrapped event associated with this OnCommitEvent
      See Also:
    • getOnCommitEventDataReloadStatus

      @Nonnull 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.

      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

      @Nonnull 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.

      This status should be set by the system when event is actually published

      Returns:
      The transaction status for this event