public class VersionedInternalEntryFactoryImpl extends InternalEntryFactoryImpl
| Constructor and Description |
|---|
VersionedInternalEntryFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 |
InternalCacheValue |
createValue(CacheEntry cacheEntry)
Creates an
InternalCacheValue based on the InternalCacheEntry passed in. |
InternalCacheEntry |
update(InternalCacheEntry ice,
long lifespan,
long maxIdle)
Updates an existing
InternalCacheEntry with new lifespan and maxIdle values. |
create, createpublic InternalCacheEntry create(Object key, Object value, EntryVersion version)
InternalEntryFactoryInternalCacheEntry instancecreate in interface InternalEntryFactorycreate in class InternalEntryFactoryImplkey - key to usevalue - value to useversion - version to usepublic InternalCacheEntry create(Object key, Object value, EntryVersion version, long created, long lifespan, long lastUsed, long maxIdle)
InternalEntryFactoryInternalCacheEntry instancecreate in interface InternalEntryFactorycreate in class InternalEntryFactoryImplkey - key to usevalue - value to useversion - version to usecreated - creation timestamp to uselifespan - lifespan to uselastUsed - lastUsed timestamp to usemaxIdle - maxIdle to usepublic InternalCacheValue createValue(CacheEntry cacheEntry)
InternalEntryFactoryInternalCacheValue based on the InternalCacheEntry passed in.createValue in interface InternalEntryFactorycreateValue in class InternalEntryFactoryImplcacheEntry - to use to generate a InternalCacheValueInternalCacheValuepublic InternalCacheEntry create(Object key, Object value, EntryVersion version, long lifespan, long maxIdle)
InternalEntryFactoryInternalCacheEntry instancecreate in interface InternalEntryFactorycreate in class InternalEntryFactoryImplkey - key to usevalue - value to useversion - version to uselifespan - lifespan to usemaxIdle - maxIdle to usepublic InternalCacheEntry update(InternalCacheEntry ice, long lifespan, long maxIdle)
InternalEntryFactoryInternalCacheEntry 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.update in interface InternalEntryFactoryupdate in class InternalEntryFactoryImplice - original internal cache entrylifespan - new lifespan to usemaxIdle - new maxIdle to useCopyright © 2012 JBoss by Red Hat. All Rights Reserved.