Class IntegrationResourceHolderSynchronization
java.lang.Object
org.springframework.transaction.support.ResourceHolderSynchronization<IntegrationResourceHolder,Object>
 
org.springframework.integration.transaction.IntegrationResourceHolderSynchronization
- All Implemented Interfaces:
- Flushable,- Ordered,- TransactionSynchronization
public class IntegrationResourceHolderSynchronization
extends ResourceHolderSynchronization<IntegrationResourceHolder,Object> 
The base 
ResourceHolderSynchronization for IntegrationResourceHolder.- Since:
- 4.0
- Author:
- Artem Bilan, Andreas Baer
- 
Field SummaryFieldsFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.transaction.support.TransactionSynchronizationSTATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
- 
Constructor SummaryConstructorsConstructorDescriptionIntegrationResourceHolderSynchronization(IntegrationResourceHolder resourceHolder, Object resourceKey) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetShouldUnbindAtCompletion(boolean shouldUnbindAtCompletion) Specify if theresourceHoldershould be unbound from the Thread Local store at transaction completion or not.protected booleanMethods inherited from class org.springframework.transaction.support.ResourceHolderSynchronizationafterCommit, afterCompletion, beforeCommit, beforeCompletion, cleanupResource, flush, flushResource, processResourceAfterCommit, releaseResource, resume, shouldReleaseAfterCompletion, shouldReleaseBeforeCompletion, suspendMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.transaction.support.TransactionSynchronizationgetOrder
- 
Field Details- 
resourceHolder
 
- 
- 
Constructor Details- 
IntegrationResourceHolderSynchronizationpublic IntegrationResourceHolderSynchronization(IntegrationResourceHolder resourceHolder, Object resourceKey) 
 
- 
- 
Method Details- 
getResourceHolder
- 
setShouldUnbindAtCompletionpublic void setShouldUnbindAtCompletion(boolean shouldUnbindAtCompletion) Specify if theresourceHoldershould be unbound from the Thread Local store at transaction completion or not. Defaulttrue.- Parameters:
- shouldUnbindAtCompletion- unbind or not- resourceHolderat transaction completion
- Since:
- 5.0
 
- 
shouldUnbindAtCompletionprotected boolean shouldUnbindAtCompletion()- Overrides:
- shouldUnbindAtCompletionin class- ResourceHolderSynchronization<IntegrationResourceHolder,- Object> 
 
 
-