Package org.hibernate.engine.spi
Interface TransactionCompletionCallbacksImplementor
- All Superinterfaces:
TransactionCompletionCallbacks
@Incubating
public interface TransactionCompletionCallbacksImplementor
extends TransactionCompletionCallbacks
- Since:
- 7.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.engine.spi.TransactionCompletionCallbacks
TransactionCompletionCallbacks.AfterCompletionCallback, TransactionCompletionCallbacks.BeforeCompletionCallback, TransactionCompletionCallbacks.CompletionCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSpaceToInvalidate
(String space) Register a cache space to be invalidated after successful transaction completion.void
afterTransactionCompletion
(boolean success) Execute registered after-completion callbacks, if any.void
Execute registered before-completion callbacks, if any.void
Execute all pendingBulkOperationCleanupAction
Ensure internal queues are initialized for sharing between sessions that share the same transaction coordinator.boolean
Are there any registered after-completion callbacks?boolean
Are there any registered before-completion callbacks?Methods inherited from interface org.hibernate.engine.spi.TransactionCompletionCallbacks
registerCallback, registerCallback
-
Method Details
-
hasBeforeCompletionCallbacks
boolean hasBeforeCompletionCallbacks()Are there any registered before-completion callbacks? -
hasAfterCompletionCallbacks
boolean hasAfterCompletionCallbacks()Are there any registered after-completion callbacks? -
beforeTransactionCompletion
void beforeTransactionCompletion()Execute registered before-completion callbacks, if any. -
afterTransactionCompletion
void afterTransactionCompletion(boolean success) Execute registered after-completion callbacks, if any. -
addSpaceToInvalidate
Register a cache space to be invalidated after successful transaction completion. -
forSharing
TransactionCompletionCallbacksImplementor forSharing()Ensure internal queues are initialized for sharing between sessions that share the same transaction coordinator. Returns this instance for convenience/fluency. -
executePendingBulkOperationCleanUpActions
void executePendingBulkOperationCleanUpActions()Execute all pendingBulkOperationCleanupAction
-