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.
|
SynchronizationRegistry |
getLocalSynchronizations()
Get access to the local registry of Synchronization instances
|
int |
getTimeOut() |
TransactionCoordinatorBuilder |
getTransactionCoordinatorBuilder() |
TransactionCoordinator.TransactionDriver |
getTransactionDriverControl()
Get the delegate used by the local transaction driver to control the underlying transaction
|
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.
|
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) |
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()
TransactionCoordinator.TransactionDriver getTransactionDriverControl()
SynchronizationRegistry getLocalSynchronizations()
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.TransactionCoordinatorBuilder getTransactionCoordinatorBuilder()
void setTimeOut(int seconds)
int getTimeOut()
Copyright © 2016 JBoss by Red Hat. All rights reserved.