public interface EntryFactory
MVCCEntry
instances for use in the InvocationContext
.
Implementations of this interface would typically wrap an internal CacheEntry
with an MVCCEntry
, optionally acquiring the necessary locks via the
LockManager
.Modifier and Type | Method and Description |
---|---|
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 ice,
boolean undeleteIfNeeded,
FlagAffectedCommand cmd,
boolean skipRead)
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,
boolean skipRead,
boolean forInvalidation,
boolean forceWrap)
Used for wrapping a cache entry for removal.
|
MVCCEntry |
wrapEntryForReplace(InvocationContext ctx,
ReplaceCommand cmd)
Used for wrapping a cache entry for replacement.
|
CacheEntry wrapEntryForReading(InvocationContext ctx, Object key) throws InterruptedException
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.ctx
- current invocation contextkey
- key to look up and wrapInterruptedException
- when things go wrong, usually trying to acquire a lockMVCCEntry wrapEntryForClear(InvocationContext ctx, Object key) throws InterruptedException
InterruptedException
MVCCEntry wrapEntryForReplace(InvocationContext ctx, ReplaceCommand cmd) throws InterruptedException
InterruptedException
MVCCEntry wrapEntryForRemove(InvocationContext ctx, Object key, boolean skipRead, boolean forInvalidation, boolean forceWrap) throws InterruptedException
skipRead
- if true
, if the key is not read during the remove operation. Only used with Repeatable
Read + Write Skew + Versioning + Cluster.InterruptedException
CacheEntry wrapEntryForDelta(InvocationContext ctx, Object deltaKey, Delta delta) throws InterruptedException
InterruptedException
MVCCEntry wrapEntryForPut(InvocationContext ctx, Object key, InternalCacheEntry ice, boolean undeleteIfNeeded, FlagAffectedCommand cmd, boolean skipRead) throws InterruptedException
skipRead
- if true
, if the key is not read during the put operation. Only used with Repeatable Read +
Write Skew + Versioning + Cluster.InterruptedException
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.