public class IntegrationResourceHolderSynchronization extends ResourceHolderSynchronization<IntegrationResourceHolder,Object>
ResourceHolderSynchronization
for IntegrationResourceHolder
.Modifier and Type | Field and Description |
---|---|
protected IntegrationResourceHolder |
resourceHolder |
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
IntegrationResourceHolderSynchronization(IntegrationResourceHolder resourceHolder,
Object resourceKey) |
Modifier and Type | Method and Description |
---|---|
IntegrationResourceHolder |
getResourceHolder() |
void |
setShouldUnbindAtCompletion(boolean shouldUnbindAtCompletion)
Specify if the
resourceHolder should be unbound from the Thread Local store
at transaction completion or not. |
protected boolean |
shouldUnbindAtCompletion() |
afterCommit, afterCompletion, beforeCommit, beforeCompletion, cleanupResource, flush, flushResource, processResourceAfterCommit, releaseResource, resume, shouldReleaseAfterCompletion, shouldReleaseBeforeCompletion, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
protected final IntegrationResourceHolder resourceHolder
public IntegrationResourceHolderSynchronization(IntegrationResourceHolder resourceHolder, Object resourceKey)
public IntegrationResourceHolder getResourceHolder()
public void setShouldUnbindAtCompletion(boolean shouldUnbindAtCompletion)
resourceHolder
should be unbound from the Thread Local store
at transaction completion or not. Default true
.shouldUnbindAtCompletion
- unbind or not resourceHolder
at transaction completionprotected boolean shouldUnbindAtCompletion()
shouldUnbindAtCompletion
in class ResourceHolderSynchronization<IntegrationResourceHolder,Object>