Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9620 Rolling Upgrade Marshaller Changes
  3. ISPN-9845

Stop exposing InternalMetadata via the persistence SPI

    Details

      Description

      We should stop exposing InternalMetadata via the persistence SPI and add created() methods direct to the MarshallableEntry interface introduced in ISPN-9693. This requires MarshallableEntry to change to:

      interface MarshallableEntry<K, V> {
         ByteBuffer getKeyBytes();
      
         ByteBuffer getValueBytes();
      
         K getKey();
      
         V getValue();
      
         Metadata metadata();
      
         ByteBuffer metadataBytes();
      
         long created();
      
         long lastUsed();
      
         boolean isExpired(long now);
      
         long expiryTime();
      }
      

      With MarshalledEntry then providing the old method for backwards compatiblity:

      ByteBuffer getMetadataBytes();
      InternalMetadata getMetadata();
      

        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: