Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1764

Remove threadLocal in org.infinispan.context.AbstractInvocationContextContainer

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 6.0.1.Final, 7.0.0.Alpha1
    • None
    • Core
    • None

    Description

      The javadocs in org.infinispan.context.AbstractInvocationContextContainer mention:

      // See ISPN-1397. There is no real need to store the InvocationContext in a thread local at all, since it is passed
      // as a parameter to any component that requires it - except for two components at the moment that require reading
      // the InvocationContext from a thread local. These two are the ClusterCacheLoader and the JBossMarshaller. The
      // former can be fixed once the CacheStore SPI is changed to accept an InvocationContext (see ISPN-1416) and the
      // latter can be fixed once the CacheManager architecture is changed to be associated with a ClassLoader per
      // CacheManager (see ISPN-1413), after which this thread local can be removed and the getInvocationContext() method
      // can also be removed.

      Attachments

        Issue Links

          Activity

            People

              dberinde@redhat.com Dan Berindei (Inactive)
              sgrinove Sanne Grinovero
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: