public interface TransactionCoordinator
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TransactionCoordinator.TransactionDriver
Provides the means for "local transactions" (as transaction drivers) to control the
underlying "physical transaction" currently associated with the TransactionCoordinator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(TransactionObserver observer)
Adds an observer to the coordinator.
|
IsolationDelegate |
createIsolationDelegate()
Retrieve an isolation delegate appropriate for this transaction strategy.
|
void |
explicitJoin()
Indicates an explicit request to join a transaction.
|
JpaCompliance |
getJpaCompliance() |
SynchronizationRegistry |
getLocalSynchronizations()
Get access to the local registry of Synchronization instances
|
int |
getTimeOut() |
TransactionCoordinatorBuilder |
getTransactionCoordinatorBuilder()
Access to the builder that generated this coordinator
|
TransactionCoordinator.TransactionDriver |
getTransactionDriverControl()
Get the delegate used by the local transaction driver to control the underlying transaction
|
default void |
invalidate() |
boolean |
isActive()
Is this transaction still active?
Answers on a best effort basis.
|
boolean |
isJoined()
Determine if there is an active transaction that this coordinator is already joined to.
|
default boolean |
isTransactionActive() |
default boolean |
isTransactionActive(boolean isMarkedRollbackConsideredActive) |
void |
pulse()
Used by owner of the JdbcSession as a means to indicate that implicit joining should be done if needed.
|
void |
removeObserver(TransactionObserver observer)
Removed an observer from the coordinator.
|
void |
setTimeOut(int seconds) |
TransactionCoordinatorBuilder getTransactionCoordinatorBuilder()
TransactionCoordinator.TransactionDriver getTransactionDriverControl()
SynchronizationRegistry getLocalSynchronizations()
JpaCompliance getJpaCompliance()
void explicitJoin()
EntityManager.joinTransaction(), and generally speaking only has an impact in
JTA environmentsboolean isJoined()
true if there is an active transaction this coordinator is already joined to; false
otherwise.void pulse()
boolean isActive()
Connection, only when
it is initiated from here.true if the transaction is still active; false otherwise.HibernateException - Indicates a problem checking the transaction status.IsolationDelegate createIsolationDelegate()
void addObserver(TransactionObserver observer)
observer - The observer to add.void removeObserver(TransactionObserver observer)
observer - The observer to remove.void setTimeOut(int seconds)
int getTimeOut()
default boolean isTransactionActive()
default boolean isTransactionActive(boolean isMarkedRollbackConsideredActive)
default void invalidate()
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.