Remove unused ThreadLocal from RedisStoreMSource (#8663)
* Remove unused ThreadLocal from RedisStoreMSource The `RedisStoreMessageSource` relies on an `IntegrationResourceHolder` for a while already. Its internal `ThreadLocal` is just out of use. * Remove that `resourceHolder` property and related methods to interact with it. * Mention the `IntegrationResourceHolder` and `store` attribute in the `redis.adoc` * Fix language in Docs Co-authored-by: Gary Russell <grussell@vmware.com> --------- Co-authored-by: Gary Russell <grussell@vmware.com>
This commit is contained in:
@@ -558,6 +558,8 @@ If only the `expression` attribute is present and the result of an expression is
|
||||
If you want the evaluation result to go to a specific channel, add a `channel` attribute.
|
||||
If the result of an expression is null or void, no message is generated.
|
||||
|
||||
The `RedisStoreMessageSource` adds a `store` attribute with a `RedisStore` instance bound to the transaction `IntegrationResourceHolder`, which can be accessed from a `TransactionSynchronizationProcessor` implementation.
|
||||
|
||||
For more information about transaction synchronization, see <<./transactions.adoc#transaction-synchronization,Transaction Synchronization>>.
|
||||
|
||||
[[redis-store-outbound-channel-adapter]]
|
||||
@@ -895,4 +897,4 @@ Default.
|
||||
- `RedisLockType.PUB_SUB_LOCK` - The lock is acquired by redis pub-sub subscription.
|
||||
|
||||
The pub-sub is preferred mode - less network chatter between client Redis server, and more performant - the lock is acquired immediately when subscription is notified about unlocking in the other process.
|
||||
However, the Redis does not support pub-sub in the Master/Replica connections (for example in AWS ElastiCache environment), therefore a busy-spin mode is chosen as a default to make the registry working in any environment.
|
||||
However, the Redis does not support pub-sub in the Master/Replica connections (for example in AWS ElastiCache environment), therefore a busy-spin mode is chosen as a default to make the registry working in any environment.
|
||||
|
||||
Reference in New Issue
Block a user