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

Stop exposing InternalMetadata via the persistence SPI

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.Final
    • 10.0.0.Final
    • Loaders and Stores
    • None

      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();
      

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: