public interface TransactionCoordinatorOwner
Modifier and Type | Method and Description |
---|---|
void |
afterTransactionBegin()
A after-begin callback from the coordinator to its owner.
|
void |
afterTransactionCompletion(boolean successful,
boolean delayed)
An after-completion callback from the coordinator to its owner.
|
void |
beforeTransactionCompletion()
A before-completion callback from the coordinator to its owner.
|
void |
flushBeforeTransactionCompletion() |
JdbcSessionOwner |
getJdbcSessionOwner() |
boolean |
isActive()
Is the TransactionCoordinator owner considered active?
|
void |
setTransactionTimeOut(int seconds)
Set the effective transaction timeout period for the current transaction, in seconds.
|
default void |
startTransactionBoundary()
Callback indicating recognition of entering into a transactional
context whether that is explicitly via the Hibernate
Transaction API or via registration
of Hibernate's JTA Synchronization impl with a JTA Transaction |
boolean isActive()
true
indicates the owner is still active; false
indicates it is not.default void startTransactionBoundary()
Transaction
API or via registration
of Hibernate's JTA Synchronization impl with a JTA Transactionvoid afterTransactionBegin()
void beforeTransactionCompletion()
void afterTransactionCompletion(boolean successful, boolean delayed)
successful
- Was the transaction successful?delayed
- Is this a delayed after transaction completion call (aka after a timeout)?JdbcSessionOwner getJdbcSessionOwner()
void setTransactionTimeOut(int seconds)
seconds
- The number of seconds before a time out should occur.void flushBeforeTransactionCompletion()
Copyright © 2021 JBoss by Red Hat. All rights reserved.