Details

      Description

      ISPN-9693 deprecated the org.infinispan.marshall.core.MarshalledEntry interface in favour of org.infinispan.persistence.spi.MarshalledEntry, however this breaks compatibility with 9.4.x stores as the method signatures of the various store/loader interfaces changed.

      Therefore, to aid with enabling backwards compatibility it is necessary to change spi.MarshalledEntry to spi.MarshallableEntry as well as the corresponding factory. This is necessary as the InitializationContext previously exposed marshall.core.MarshalledEntry and the naming change provides us an easy way to differentiate the context methods as we can't have two getMarshalledEntryFactory methods due to type erasure.

      Due to type erasure it is also necessary to introduce several new methods to the writer/loader methods. Deprecated/Replacement method list below:

      • CacheLoader MarshalledEntry load(Object) -> MarshallableEntry loadEntry(Object)
      • AdvancedCacheLoader Publisher<MarshalledEntry<K, V>> publishEntries(..) -> Publisher<MarshallableEntry<K, V>> entryPublisher(...)
      • CacheWriter writeBatch(Iterable<MarshalledEntry>) > writeBulk(Publisher) InitializationContextgetMarshalledEntryFactory->getMarshallableEntryFactory`

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ryanemerson Ryan Emerson
                  Reporter:
                  ryanemerson Ryan Emerson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: