]
Katia Aresti updated ISPN-8580:
-------------------------------
Summary: Refactor ThreadLocal use to handle hotrod flags (was: Reactor ThreadLocal
use to handle hotrod flags )
Refactor ThreadLocal use to handle hotrod flags
-------------------------------------------------
Key: ISPN-8580
URL:
https://issues.jboss.org/browse/ISPN-8580
Project: Infinispan
Issue Type: Task
Components: Hot Rod
Reporter: Katia Aresti
Assignee: Katia Aresti
Priority: Optional
OperationsFactory and MultimapOperationsFactory use ThreadLocal to share flags.
Instead store the flags on each instance of the RemoteMultiMap/RemoteCache and pass them
when they invoke something. When a new flag is added or removed we would create a new
instance. This seems much more intuitive to me and simpler.
Then the flags can be defaulted on the RemoteCache/RemoteMultiMap when it is retrieved
from the manager as well.