|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalEntryFactory
A factory for InternalCacheEntry and InternalCacheValue instances.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 copy
InternalCacheEntry 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 from
InternalCacheEntry create(Object key,
Object value,
EntryVersion version)
InternalCacheEntry instance
key - key to usevalue - value to useversion - version to use
InternalCacheEntry create(Object key,
Object value,
EntryVersion version,
long lifespan,
long maxIdle)
InternalCacheEntry instance
key - key to usevalue - value to useversion - version to uselifespan - lifespan to usemaxIdle - maxIdle to use
InternalCacheEntry create(Object key,
Object value,
EntryVersion version,
long created,
long lifespan,
long lastUsed,
long maxIdle)
InternalCacheEntry instance
key - key to usevalue - value to useversion - version to usecreated - creation timestamp to uselifespan - lifespan to uselastUsed - lastUsed timestamp to usemaxIdle - maxIdle to use
InternalCacheEntry 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 use
InternalCacheValue createValue(CacheEntry cacheEntry)
InternalCacheValue based on the InternalCacheEntry passed in.
cacheEntry - to use to generate a InternalCacheValue
InternalCacheValue
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||