public class JdbcResourceLocalTransactionCoordinatorImpl extends Object implements TransactionCoordinator
JdbcResourceTransaction
JdbcResourceTransaction
Modifier and Type | Class and Description |
---|---|
class |
JdbcResourceLocalTransactionCoordinatorImpl.TransactionDriverControlImpl
The delegate bridging between the local (application facing) transaction and the "physical" notion of a
transaction via the JDBC Connection.
|
TransactionCoordinator.TransactionDriver
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) |
public TransactionCoordinator.TransactionDriver getTransactionDriverControl()
TransactionCoordinator
getTransactionDriverControl
in interface TransactionCoordinator
public void explicitJoin()
TransactionCoordinator
EntityManager.joinTransaction()
, and generally speaking only has an impact in
JTA environmentsexplicitJoin
in interface TransactionCoordinator
public boolean isJoined()
TransactionCoordinator
isJoined
in interface TransactionCoordinator
true
if there is an active transaction this coordinator is already joined to; false
otherwise.public void pulse()
TransactionCoordinator
pulse
in interface TransactionCoordinator
public SynchronizationRegistry getLocalSynchronizations()
TransactionCoordinator
getLocalSynchronizations
in interface TransactionCoordinator
public boolean isActive()
TransactionCoordinator
Connection
, only when
it is initiated from here.isActive
in interface TransactionCoordinator
true
if the transaction is still active; false
otherwise.public IsolationDelegate createIsolationDelegate()
TransactionCoordinator
createIsolationDelegate
in interface TransactionCoordinator
public TransactionCoordinatorBuilder getTransactionCoordinatorBuilder()
getTransactionCoordinatorBuilder
in interface TransactionCoordinator
public void setTimeOut(int seconds)
setTimeOut
in interface TransactionCoordinator
public int getTimeOut()
getTimeOut
in interface TransactionCoordinator
public void addObserver(TransactionObserver observer)
TransactionCoordinator
addObserver
in interface TransactionCoordinator
observer
- The observer to add.public void removeObserver(TransactionObserver observer)
TransactionCoordinator
removeObserver
in interface TransactionCoordinator
observer
- The observer to remove.Copyright © 2017 JBoss by Red Hat. All rights reserved.