|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.container.InternalEntryFactoryImpl
org.infinispan.container.VersionedInternalEntryFactoryImpl
public class VersionedInternalEntryFactoryImpl
An implementation that generates versioned entries
Constructor Summary | |
---|---|
VersionedInternalEntryFactoryImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.infinispan.container.InternalEntryFactoryImpl |
---|
create, create |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionedInternalEntryFactoryImpl()
Method Detail |
---|
public InternalCacheEntry create(Object key, Object value, EntryVersion version)
InternalEntryFactory
InternalCacheEntry
instance
create
in interface InternalEntryFactory
create
in class InternalEntryFactoryImpl
key
- key to usevalue
- value to useversion
- version to use
public InternalCacheEntry create(Object key, Object value, EntryVersion version, long created, long lifespan, long lastUsed, long maxIdle)
InternalEntryFactory
InternalCacheEntry
instance
create
in interface InternalEntryFactory
create
in class InternalEntryFactoryImpl
key
- key to usevalue
- value to useversion
- version to usecreated
- creation timestamp to uselifespan
- lifespan to uselastUsed
- lastUsed timestamp to usemaxIdle
- maxIdle to use
public InternalCacheValue createValue(CacheEntry cacheEntry)
InternalEntryFactory
InternalCacheValue
based on the InternalCacheEntry
passed in.
createValue
in interface InternalEntryFactory
createValue
in class InternalEntryFactoryImpl
cacheEntry
- to use to generate a InternalCacheValue
InternalCacheValue
public InternalCacheEntry create(Object key, Object value, EntryVersion version, long lifespan, long maxIdle)
InternalEntryFactory
InternalCacheEntry
instance
create
in interface InternalEntryFactory
create
in class InternalEntryFactoryImpl
key
- key to usevalue
- value to useversion
- version to uselifespan
- lifespan to usemaxIdle
- maxIdle to use
public 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
update
in class InternalEntryFactoryImpl
ice
- original internal cache entrylifespan
- new lifespan to usemaxIdle
- new maxIdle to use
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |