]
Ryan Emerson updated ISPN-9845:
-------------------------------
Parent: ISPN-9620
Issue Type: Sub-task (was: Enhancement)
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