public static enum TransactionAware.When extends Enum<TransactionAware.When>
Enum Constant and Description |
---|
AFTER_COMMIT
The event should be published after the transaction has committed, but before it has
completed . |
AFTER_COMPLETION
The event should be published after the transaction has completed, whether it is
committed or rolled back. |
IMMEDIATE
The event should be published immediately, regardless of any transaction in progress.
|
Modifier and Type | Method and Description |
---|---|
static TransactionAware.When |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionAware.When[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionAware.When AFTER_COMMIT
completed
.
Note: If the transaction does not commit (for example, an optimistic locking failure triggers a rollback on the transaction), the event will never be published.
public static final TransactionAware.When AFTER_COMPLETION
committed
or rolled back.public static final TransactionAware.When IMMEDIATE
Because TransactionAware
is inherited, this entry allows derived classes to
effectively disable transaction awareness imposed on them by superclasses. It should
not be used otherwise; simply leaving off the TransactionAware
annotation
will produce the same behaviour.
public static TransactionAware.When[] values()
for (TransactionAware.When c : TransactionAware.When.values()) System.out.println(c);
public static TransactionAware.When valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Atlassian. All rights reserved.