Distinguishes the various kinds of transactional observer methods from regular observer methods which are notified immediately.
Transactional observer methods are observer methods which receive event notifications during the before or after completion
phase of the transaction in which the event was fired. If no transaction is in progress when the event is fired, they are
notified at the same time as other observers.
If the transaction is in progress, but javax.transaction.Synchronization callback cannot be registered due to the transaction being already
marked for rollback or in state where javax.transaction.Synchronization callbacks cannot be registered, the BEFORE_COMPLETION,
AFTER_COMPLETION and AFTER_FAILURE observer methods are notified at the same time as other observers,
but AFTER_SUCCESS observer methods get skipped.
| Modifier and Type | Field and Description |
|---|---|
| public static final TransactionPhase | AFTER_COMPLETION
Identifies an after completion observer method, called during the after completion phase of the transaction. |
| public static final TransactionPhase | AFTER_FAILURE
Identifies an after failure observer method, called during the after completion phase of the transaction, only when the transaction fails. |
| public static final TransactionPhase | AFTER_SUCCESS
Identifies an after success observer method, called during the after completion phase of the transaction, only when the transaction completes successfully. |
| public static final TransactionPhase | BEFORE_COMPLETION
Identifies a before completion observer method, called during the before completion phase of the transaction. |
| public static final TransactionPhase | IN_PROGRESS
Identifies a regular observer method, called when the event is fired. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TransactionPhase | |
| public static TransactionPhase[] |
| AFTER_COMPLETION | back to summary |
|---|---|
| public static final TransactionPhase AFTER_COMPLETION Identifies an after completion observer method, called during the after completion phase of the transaction.
Transactional observer will be notified if there is no transaction in progress, or the transaction is in progress,
but | |
| AFTER_FAILURE | back to summary |
|---|---|
| public static final TransactionPhase AFTER_FAILURE Identifies an after failure observer method, called during the after completion phase of the transaction, only when the transaction fails.
Transactional observer will be notified will also get invoked if there is no transaction in progress, or the transaction is in progress,
but | |
| AFTER_SUCCESS | back to summary |
|---|---|
| public static final TransactionPhase AFTER_SUCCESS Identifies an after success observer method, called during the after completion phase of the transaction, only when the transaction completes successfully. | |
| BEFORE_COMPLETION | back to summary |
|---|---|
| public static final TransactionPhase BEFORE_COMPLETION Identifies a before completion observer method, called during the before completion phase of the transaction.
Transactional observer will be notified if there is no transaction in progress, or the transaction is in progress,
but | |
| IN_PROGRESS | back to summary |
|---|---|
| public static final TransactionPhase IN_PROGRESS Identifies a regular observer method, called when the event is fired. | |
| TransactionPhase | back to summary |
|---|---|
| private TransactionPhase() | |
| valueOf | back to summary |
|---|---|
| public static TransactionPhase valueOf(String name) | |
| values | back to summary |
|---|---|
| public static TransactionPhase[] values() | |