OctaviusSessionSynchronization
internal class OctaviusSessionSynchronization(holder: OctaviusSessionHolder, key: OctaviusSessionKey) : ResourceHolderSynchronization<OctaviusSessionHolder, OctaviusSessionKey>
Ends the transaction-scoped session at the right point in Spring's completion sequence.
ResourceHolderSynchronization carries the binding for us, including suspend and resume - a REQUIRES_NEW transaction inside another one gets a different connection, and without unbinding over the suspension it would find the outer transaction's session still bound and run its work on the wrong connection.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open fun cleanupResource(resourceHolder: OctaviusSessionHolder?, resourceKey: OctaviusSessionKey?, committed: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open override fun releaseResource(resourceHolder: OctaviusSessionHolder, resourceKey: OctaviusSessionKey)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Moves the release from beforeCompletion, where this class puts it by default, to afterCompletion.
Link copied to clipboard