[infinispan-issues] [JBoss JIRA] (ISPN-9845) Stop exposing InternalMetadata via the persistence SPI

Ryan Emerson (Jira) issues at jboss.org
Fri Dec 21 06:11:00 EST 2018


Ryan Emerson created ISPN-9845:
----------------------------------

             Summary: Stop exposing InternalMetadata via the persistence SPI
                 Key: ISPN-9845
                 URL: https://issues.jboss.org/browse/ISPN-9845
             Project: Infinispan
          Issue Type: Enhancement
          Components: Loaders and Stores
    Affects Versions: 10.0.0.Alpha2
            Reporter: Ryan Emerson
            Assignee: Ryan Emerson
             Fix For: 10.0.0.Beta1


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:

{code:java}
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();
}
{code}
With MarshalledEntry then providing the old method for backwards compatiblity:

{code:java}
ByteBuffer getMetadataBytes();
InternalMetadata getMetadata();
{code



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list