public interface InternalEntryFactory
InternalCacheEntry and InternalCacheValue instances.| Modifier and Type | Method and Description |
|---|---|
<K,V> CacheEntry<K,V> |
copy(CacheEntry<K,V> cacheEntry)
Creates a copy of this cache entry and synchronizes serializes the copy process with the
update(org.infinispan.container.entries.InternalCacheEntry, org.infinispan.metadata.Metadata). |
<K,V> InternalCacheEntry<K,V> |
create(CacheEntry<K,V> cacheEntry)
Creates a new
InternalCacheEntry instance based on the key, value, version and timestamp/lifespan
information reflected in the CacheEntry instance passed in. |
<K,V> InternalCacheEntry<K,V> |
create(K key,
V value,
EntryVersion version,
long created,
long lifespan,
long lastUsed,
long maxIdle)
Creates a new
InternalCacheEntry instance |
<K,V> InternalCacheEntry<K,V> |
create(K key,
V value,
InternalCacheEntry<?,?> cacheEntry)
Creates a new
InternalCacheEntry instance based on the version and timestamp/lifespan
information reflected in the CacheEntry instance passed in. |
<K,V> InternalCacheEntry<K,V> |
create(K key,
V value,
Metadata metadata)
Creates a new
InternalCacheEntry instance |
<K,V> InternalCacheEntry<K,V> |
create(K key,
V value,
Metadata metadata,
long lifespan,
long maxIdle)
Creates a new
InternalCacheEntry instance |
<K,V> InternalCacheEntry<K,V> |
create(K key,
V value,
Metadata metadata,
long created,
long lifespan,
long lastUsed,
long maxIdle)
Creates a new
InternalCacheEntry instance |
<K,V> InternalCacheEntry<K,V> |
createL1(K key,
V value,
Metadata metadata)
Creates a L1 entry.
|
<V> InternalCacheValue<V> |
createValue(CacheEntry<?,V> cacheEntry)
Creates an
InternalCacheValue based on the InternalCacheEntry passed in. |
<K,V> InternalCacheEntry<K,V> |
update(InternalCacheEntry<K,V> cacheEntry,
Metadata metadata)
TODO: Adjust javadoc
Updates an existing
InternalCacheEntry with new metadata. |
<K,V> InternalCacheEntry<K,V> |
update(InternalCacheEntry<K,V> cacheEntry,
V value,
Metadata metadata)
Similar to
update(org.infinispan.container.entries.InternalCacheEntry, org.infinispan.metadata.Metadata)
but it also updates the InternalCacheEntry value. |
<K,V> InternalCacheEntry<K,V> create(CacheEntry<K,V> cacheEntry)
InternalCacheEntry instance based on the key, value, version and timestamp/lifespan
information reflected in the CacheEntry instance passed in.K - The key type for the entryV - The value type for the entrycacheEntry - cache entry to copy<K,V> InternalCacheEntry<K,V> create(K key, V value, InternalCacheEntry<?,?> cacheEntry)
InternalCacheEntry instance based on the version and timestamp/lifespan
information reflected in the CacheEntry instance passed in. Key and value are both passed in
explicitly.K - The key type for the entryV - The value type for the entrykey - key to usevalue - value to usecacheEntry - cache entry to retrieve version and timestamp/lifespan information from<K,V> InternalCacheEntry<K,V> create(K key, V value, Metadata metadata)
InternalCacheEntry instanceK - The key type for the entryV - The value type for the entrykey - key to usevalue - value to usemetadata - metadata for entry<K,V> InternalCacheEntry<K,V> create(K key, V value, Metadata metadata, long lifespan, long maxIdle)
InternalCacheEntry instanceK - The key type for the entryV - The value type for the entrykey - key to usevalue - value to usemetadata - metadata for entrylifespan - lifespan to usemaxIdle - maxIdle to use<K,V> InternalCacheEntry<K,V> create(K key, V value, Metadata metadata, long created, long lifespan, long lastUsed, long maxIdle)
InternalCacheEntry instanceK - The key type for the entryV - The value type for the entrykey - key to usevalue - value to usemetadata - metadata for entrycreated - creation timestamp to uselifespan - lifespan to uselastUsed - lastUsed timestamp to usemaxIdle - maxIdle to use<K,V> InternalCacheEntry<K,V> create(K key, V value, EntryVersion version, long created, long lifespan, long lastUsed, long maxIdle)
InternalCacheEntry instanceK - The key type for the entryV - The value type for the entrykey - key to usevalue - value to useversion - version to usecreated - creation timestamp to uselifespan - lifespan to uselastUsed - lastUsed timestamp to usemaxIdle - maxIdle to use<K,V> InternalCacheEntry<K,V> update(InternalCacheEntry<K,V> cacheEntry, Metadata metadata)
InternalCacheEntry with new metadata. This may result in a new
InternalCacheEntry instance being created, as a different InternalCacheEntry implementation
may be more appropriate to suit the new metadata values. As such, one should consider the InternalCacheEntry
passed in as a parameter as passed by value and not by reference.K - The key type for the entryV - The value type for the entrycacheEntry - original internal cache entrymetadata - new metadata<K,V> InternalCacheEntry<K,V> update(InternalCacheEntry<K,V> cacheEntry, V value, Metadata metadata)
update(org.infinispan.container.entries.InternalCacheEntry, org.infinispan.metadata.Metadata)
but it also updates the InternalCacheEntry value.
If the same internal cache entry is returned and if it is a mortal cache entry, the returned instance needs to be
reincarnated.K - The key type for the entryV - The value type for the entrycacheEntry - original internal cache entryvalue - new valuemetadata - new metadata<V> InternalCacheValue<V> createValue(CacheEntry<?,V> cacheEntry)
InternalCacheValue based on the InternalCacheEntry passed in.V - The value typecacheEntry - to use to generate a InternalCacheValueInternalCacheValue<K,V> CacheEntry<K,V> copy(CacheEntry<K,V> cacheEntry)
update(org.infinispan.container.entries.InternalCacheEntry, org.infinispan.metadata.Metadata).
This is requires so that readers of the entry will get an consistent snapshot of the value red.K - The key type for the entryV - The value type for the entry<K,V> InternalCacheEntry<K,V> createL1(K key, V value, Metadata metadata)
K - The key type for the entryV - The value type for the entrykey - value - @return a new InternalCacheEntryCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.