Package com.atlassian.jira.event.commit
Enum Class OnCommitEvent.OnCommitEventDataReloadStatus
java.lang.Object
java.lang.Enum<OnCommitEvent.OnCommitEventDataReloadStatus>
com.atlassian.jira.event.commit.OnCommitEvent.OnCommitEventDataReloadStatus
- All Implemented Interfaces:
Serializable,Comparable<OnCommitEvent.OnCommitEventDataReloadStatus>,Constable
- Enclosing interface:
- OnCommitEvent<T>
@ExperimentalApi
public static enum OnCommitEvent.OnCommitEventDataReloadStatus
extends Enum<OnCommitEvent.OnCommitEventDataReloadStatus>
Used to indicate to consumers of
OnCommitEvent whether the data contained in event was reloaded after commit
or not.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe publisher has not reloaded any data after the commit.The publisher explicitly ensures that they have reloaded the relevant data after commit, and put it into this event.The publisher has not explicitly said whether they reloaded any data or not. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RELOADED_ON_COMMIT
The publisher explicitly ensures that they have reloaded the relevant data after commit, and put it into this event. -
NOT_RELOADED_ON_COMMIT
The publisher has not reloaded any data after the commit. This may be used by consumer to consider loaded the relevant data themselves. However, if used in conjunction withOnCommitEvent.OnCommitEventTransactionStatusit may not be necessary to reload, if the event was submitted immediately, as no transaction was in scope -
UNSPECIFIED
The publisher has not explicitly said whether they reloaded any data or not. If used in conjunction withOnCommitEvent.OnCommitEventTransactionStatusthen may indicate that not necessary to reload data if not in a transaction. But the actual status is unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-