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

Tristan Tarrant (Jira) issues at jboss.org
Sun Jan 27 08:32:17 EST 2019


     [ https://issues.jboss.org/browse/ISPN-9845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-9845:
----------------------------------
    Fix Version/s: 10.0.0.Beta1
                       (was: 10.0.0.Alpha3)


> Stop exposing InternalMetadata via the persistence SPI
> ------------------------------------------------------
>
>                 Key: ISPN-9845
>                 URL: https://issues.jboss.org/browse/ISPN-9845
>             Project: Infinispan
>          Issue Type: Sub-task
>          Components: Loaders and Stores
>    Affects Versions: 10.0.0.Alpha2
>            Reporter: Ryan Emerson
>            Assignee: Ryan Emerson
>            Priority: Major
>             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