public class InternalEntryFactoryImpl extends Object implements InternalEntryFactory
Constructor and Description |
---|
InternalEntryFactoryImpl() |
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 ignored)
Creates a new
InternalCacheEntry instance |
InternalCacheEntry |
create(Object key,
Object value,
EntryVersion ignored,
long lifespan,
long maxIdle)
Creates a new
InternalCacheEntry instance |
InternalCacheEntry |
create(Object key,
Object value,
EntryVersion ignored,
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 ice,
long lifespan,
long maxIdle)
Updates an existing
InternalCacheEntry with new lifespan and maxIdle values. |
public InternalCacheEntry create(Object key, Object value, EntryVersion ignored)
InternalEntryFactory
InternalCacheEntry
instancecreate
in interface InternalEntryFactory
key
- key to usevalue
- value to useignored
- version to usepublic InternalCacheEntry create(CacheEntry cacheEntry)
InternalEntryFactory
InternalCacheEntry
instance based on the key, value, version and timestamp/lifespan
information reflected in the CacheEntry
instance passed in.create
in interface InternalEntryFactory
cacheEntry
- cache entry to copypublic InternalCacheEntry create(Object key, Object value, InternalCacheEntry cacheEntry)
InternalEntryFactory
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.create
in interface InternalEntryFactory
key
- key to usevalue
- value to usecacheEntry
- cache entry to retrieve version and timestamp/lifespan information frompublic InternalCacheEntry create(Object key, Object value, EntryVersion ignored, long created, long lifespan, long lastUsed, long maxIdle)
InternalEntryFactory
InternalCacheEntry
instancecreate
in interface InternalEntryFactory
key
- key to usevalue
- value to useignored
- version to usecreated
- creation timestamp to uselifespan
- lifespan to uselastUsed
- lastUsed timestamp to usemaxIdle
- maxIdle to usepublic InternalCacheValue createValue(CacheEntry cacheEntry)
InternalEntryFactory
InternalCacheValue
based on the InternalCacheEntry
passed in.createValue
in interface InternalEntryFactory
cacheEntry
- to use to generate a InternalCacheValue
InternalCacheValue
public InternalCacheEntry create(Object key, Object value, EntryVersion ignored, long lifespan, long maxIdle)
InternalEntryFactory
InternalCacheEntry
instancecreate
in interface InternalEntryFactory
key
- key to usevalue
- value to useignored
- version to uselifespan
- lifespan to usemaxIdle
- maxIdle to usepublic InternalCacheEntry update(InternalCacheEntry ice, long lifespan, long maxIdle)
InternalEntryFactory
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.update
in interface InternalEntryFactory
ice
- original internal cache entrylifespan
- new lifespan to usemaxIdle
- new maxIdle to useCopyright © 2012 JBoss by Red Hat. All Rights Reserved.