|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.container.EntryFactoryImpl
public class EntryFactoryImpl
EntryFactory
implementation to be used for optimistic locking scheme.
Field Summary | |
---|---|
protected boolean |
localModeWriteSkewCheck
|
protected boolean |
useRepeatableRead
|
Constructor Summary | |
---|---|
EntryFactoryImpl()
|
Method Summary | |
---|---|
protected MVCCEntry |
createWrappedEntry(Object key,
Object value,
EntryVersion version,
boolean isForInsert,
boolean forRemoval,
long lifespan)
|
void |
init()
|
void |
injectDependencies(DataContainer dataContainer,
Configuration configuration,
CacheNotifier notifier)
|
MVCCEntry |
wrapEntryForClear(InvocationContext ctx,
Object key)
Used for wrapping individual keys when clearing the cache. |
CacheEntry |
wrapEntryForDelta(InvocationContext ctx,
Object deltaKey,
Delta delta)
Used for wrapping Delta entry to be applied to DeltaAware object stored in cache. |
MVCCEntry |
wrapEntryForPut(InvocationContext ctx,
Object key,
InternalCacheEntry icEntry,
boolean undeleteIfNeeded)
Used for wrapping a cache entry for addition to cache. |
CacheEntry |
wrapEntryForReading(InvocationContext ctx,
Object key)
Wraps an entry for reading. |
MVCCEntry |
wrapEntryForRemove(InvocationContext ctx,
Object key)
Used for wrapping a cache entry for removal. |
MVCCEntry |
wrapEntryForReplace(InvocationContext ctx,
Object key)
Used for wrapping a cache entry for replacement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean useRepeatableRead
protected boolean localModeWriteSkewCheck
Constructor Detail |
---|
public EntryFactoryImpl()
Method Detail |
---|
public void injectDependencies(DataContainer dataContainer, Configuration configuration, CacheNotifier notifier)
public void init()
public final CacheEntry wrapEntryForReading(InvocationContext ctx, Object key) throws InterruptedException
EntryFactory
CacheEntry
but certain combinations of isolation
levels and the presence of an ongoing JTA transaction may force this to be a proper, wrapped MVCCEntry. The entry
is also typically placed in the invocation context.
wrapEntryForReading
in interface EntryFactory
ctx
- current invocation contextkey
- key to look up and wrap
InterruptedException
- when things go wrong, usually trying to acquire a lockpublic final MVCCEntry wrapEntryForClear(InvocationContext ctx, Object key) throws InterruptedException
EntryFactory
wrapEntryForClear
in interface EntryFactory
InterruptedException
public final MVCCEntry wrapEntryForReplace(InvocationContext ctx, Object key) throws InterruptedException
EntryFactory
wrapEntryForReplace
in interface EntryFactory
InterruptedException
public final MVCCEntry wrapEntryForRemove(InvocationContext ctx, Object key) throws InterruptedException
EntryFactory
wrapEntryForRemove
in interface EntryFactory
InterruptedException
public final MVCCEntry wrapEntryForPut(InvocationContext ctx, Object key, InternalCacheEntry icEntry, boolean undeleteIfNeeded) throws InterruptedException
EntryFactory
wrapEntryForPut
in interface EntryFactory
InterruptedException
public CacheEntry wrapEntryForDelta(InvocationContext ctx, Object deltaKey, Delta delta) throws InterruptedException
EntryFactory
wrapEntryForDelta
in interface EntryFactory
InterruptedException
protected MVCCEntry createWrappedEntry(Object key, Object value, EntryVersion version, boolean isForInsert, boolean forRemoval, long lifespan)
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |