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

Per remote cache marshaller should reuse instances

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.0.Final
    • 12.0.2.Final, 12.1.0.Final
    • 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)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: