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

    XMLWordPrintable

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

      Attachments

        Issue Links

          Activity

            People

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: