public interface InternalEntryFactory
InternalCacheEntry and InternalCacheValue instances.| Modifier and Type | Method and Description |
|---|---|
InternalCacheEntry |
create(CacheEntry cacheEntry)
Creates a new
InternalCacheEntry instance based on the key, value, version and timestamp/lifespan
information reflected in the CacheEntry instance passed in. |
InternalCacheEntry |
create(Object key,
Object value,
EntryVersion version)
Creates a new
InternalCacheEntry instance |
InternalCacheEntry |
create(Object key,
Object value,
EntryVersion version,
long lifespan,
long maxIdle)
Creates a new
InternalCacheEntry instance |
InternalCacheEntry |
create(Object key,
Object value,
EntryVersion version,
long created,
long lifespan,
long lastUsed,
long maxIdle)
Creates a new
InternalCacheEntry instance |
InternalCacheEntry |
create(Object key,
Object value,
InternalCacheEntry cacheEntry)
Creates a new
InternalCacheEntry instance based on the version and timestamp/lifespan
information reflected in the CacheEntry instance passed in. |
InternalCacheValue |
createValue(CacheEntry cacheEntry)
Creates an
InternalCacheValue based on the InternalCacheEntry passed in. |
InternalCacheEntry |
update(InternalCacheEntry cacheEntry,
long lifespan,
long maxIdle)
Updates an existing
InternalCacheEntry with new lifespan and maxIdle values. |
InternalCacheEntry create(CacheEntry cacheEntry)
InternalCacheEntry instance based on the key, value, version and timestamp/lifespan
information reflected in the CacheEntry instance passed in.cacheEntry - cache entry to copyInternalCacheEntry create(Object key, Object 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.key - key to usevalue - value to usecacheEntry - cache entry to retrieve version and timestamp/lifespan information fromInternalCacheEntry create(Object key, Object value, EntryVersion version)
InternalCacheEntry instancekey - key to usevalue - value to useversion - version to useInternalCacheEntry create(Object key, Object value, EntryVersion version, long lifespan, long maxIdle)
InternalCacheEntry instancekey - key to usevalue - value to useversion - version to uselifespan - lifespan to usemaxIdle - maxIdle to useInternalCacheEntry create(Object key, Object value, EntryVersion version, long created, long lifespan, long lastUsed, long maxIdle)
InternalCacheEntry instancekey - key to usevalue - value to useversion - version to usecreated - creation timestamp to uselifespan - lifespan to uselastUsed - lastUsed timestamp to usemaxIdle - maxIdle to useInternalCacheEntry update(InternalCacheEntry cacheEntry, long lifespan, long maxIdle)
InternalCacheEntry with new lifespan and maxIdle values. This may result in a new
InternalCacheEntry instance being created, as a different InternalCacheEntry implementation
may be more appropriate to suit the new lifespan and maxIdle values. As such, one should consider the InternalCacheEntry
passed in as a parameter as passed by value and not by reference.cacheEntry - original internal cache entrylifespan - new lifespan to usemaxIdle - new maxIdle to useInternalCacheValue createValue(CacheEntry cacheEntry)
InternalCacheValue based on the InternalCacheEntry passed in.cacheEntry - to use to generate a InternalCacheValueInternalCacheValueCopyright © 2012 JBoss by Red Hat. All Rights Reserved.