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)
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.
|
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, Object key) throws InterruptedException
InterruptedException
MVCCEntry wrapEntryForRemove(InvocationContext ctx, Object key) throws InterruptedException
InterruptedException
CacheEntry wrapEntryForDelta(InvocationContext ctx, Object deltaKey, Delta delta) throws InterruptedException
InterruptedException
MVCCEntry wrapEntryForPut(InvocationContext ctx, Object key, InternalCacheEntry ice, boolean undeleteIfNeeded) throws InterruptedException
InterruptedException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.