public enum TransactionStatus extends Enum<TransactionStatus>
TransactedSession
).Enum Constant and Description |
---|
ACTIVE
A transaction is active (in progress).
|
CLOSED
No transaction is active (closed).
|
COMMIT_ROLLING_BACK
A transaction commit has to be rolled back as it contains UNBOUND consumer flows.
|
COMMITTING
A transaction commit is in progress.
|
COMMITTING_INTERRUPTED
An in progress transaction commit is interrupted.
|
MARKED_ROLLBACK
A transaction failed asynchronously and is marked for rollback.
|
ROLLING_BACK
A transaction rollback is in progress.
|
ROLLING_BACK_INTERRUPTED
An in progress transaction rollback is interrupted.
|
UNKNOWN
Unknown status (could not be determined).
|
Modifier and Type | Method and Description |
---|---|
static TransactionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionStatus UNKNOWN
public static final TransactionStatus ACTIVE
public static final TransactionStatus COMMITTING
public static final TransactionStatus COMMITTING_INTERRUPTED
public static final TransactionStatus ROLLING_BACK
public static final TransactionStatus ROLLING_BACK_INTERRUPTED
public static final TransactionStatus MARKED_ROLLBACK
commit() / rollback()
is called.public static final TransactionStatus COMMIT_ROLLING_BACK
public static final TransactionStatus CLOSED
public static TransactionStatus[] values()
for (TransactionStatus c : TransactionStatus.values()) System.out.println(c);
public static TransactionStatus 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 2004-2024 Solace Corporation. All rights reserved.