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: