Class IntegrationResourceHolderSynchronization
java.lang.Object
org.springframework.transaction.support.ResourceHolderSynchronization<IntegrationResourceHolder,java.lang.Object>
org.springframework.integration.transaction.IntegrationResourceHolderSynchronization
- All Implemented Interfaces:
java.io.Flushable,org.springframework.core.Ordered,org.springframework.transaction.support.TransactionSynchronization
public class IntegrationResourceHolderSynchronization extends org.springframework.transaction.support.ResourceHolderSynchronization<IntegrationResourceHolder,java.lang.Object>
The base
ResourceHolderSynchronization for IntegrationResourceHolder.- Since:
- 4.0
-
Field Summary
Fields Modifier and Type Field Description protected IntegrationResourceHolderresourceHolder -
Constructor Summary
Constructors Constructor Description IntegrationResourceHolderSynchronization(IntegrationResourceHolder resourceHolder, java.lang.Object resourceKey) -
Method Summary
Modifier and Type Method Description IntegrationResourceHoldergetResourceHolder()voidsetShouldUnbindAtCompletion(boolean shouldUnbindAtCompletion)Specify if theresourceHoldershould be unbound from the Thread Local store at transaction completion or not.protected booleanshouldUnbindAtCompletion()Methods inherited from class org.springframework.transaction.support.ResourceHolderSynchronization
afterCommit, afterCompletion, beforeCommit, beforeCompletion, cleanupResource, flush, flushResource, processResourceAfterCommit, releaseResource, resume, shouldReleaseAfterCompletion, shouldReleaseBeforeCompletion, suspend
-
Field Details
-
Constructor Details
-
IntegrationResourceHolderSynchronization
public IntegrationResourceHolderSynchronization(IntegrationResourceHolder resourceHolder, java.lang.Object resourceKey)
-
-
Method Details
-
getResourceHolder
-
setShouldUnbindAtCompletion
public void setShouldUnbindAtCompletion(boolean shouldUnbindAtCompletion)Specify if theresourceHoldershould be unbound from the Thread Local store at transaction completion or not. Defaulttrue.- Parameters:
shouldUnbindAtCompletion- unbind or notresourceHolderat transaction completion- Since:
- 5.0
-
shouldUnbindAtCompletion
protected boolean shouldUnbindAtCompletion()- Overrides:
shouldUnbindAtCompletionin classorg.springframework.transaction.support.ResourceHolderSynchronization<IntegrationResourceHolder,java.lang.Object>
-