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

Per remote cache marshaller should reuse instances


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.0.Final
    • 12.0.2.Final, 12.1.0.CR2
    • Remote Protocols
    • None

      If a marshaller class is configured, the cache should reuse marshaller instances via MarshallerRegistry.
      If a marshaller instance is configured, the cache should use the actual instance.

      Another option would be to always reuse instances:

      • Cache configuration could reference a media type or a marshaller class, but not a marshaller instance.
      • Marshaller instances would be registered directly with the RemoteCacheManager and go into MarshallerRegistry.
      • Advanced users that need to use different marshaller instance for the same media type (e.g. 2 ProtoStreamMarshallers with different schemas) would have to use `RemoteCache.withDataFormat()`

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            gfernand@redhat.com Gustavo Fernandes (Inactive)
            0 Vote for this issue
            1 Start watching this issue