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 | Interface and Description |
---|---|
static class |
EntryFactory.Wrap |
Modifier and Type | Method and Description |
---|---|
MVCCEntry |
wrapEntryForClear(InvocationContext ctx,
Object key)
Deprecated.
Clear no longer wraps entries.
|
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)
Deprecated.
Since 8.1, use
wrapEntryForWriting(InvocationContext, Object, Wrap, boolean, boolean) instead. |
CacheEntry |
wrapEntryForReading(InvocationContext ctx,
Object key,
CacheEntry existing)
Wraps an entry for reading.
|
MVCCEntry |
wrapEntryForRemove(InvocationContext ctx,
Object key,
boolean skipRead,
boolean forInvalidation,
boolean forceWrap)
Deprecated.
Since 8.1, use
wrapEntryForWriting(InvocationContext, Object, Wrap, boolean, boolean) instead. |
MVCCEntry |
wrapEntryForReplace(InvocationContext ctx,
ReplaceCommand cmd)
Deprecated.
Since 8.1, use
wrapEntryForWriting(InvocationContext, Object, Wrap, boolean, boolean) instead. |
MVCCEntry |
wrapEntryForWriting(InvocationContext ctx,
Object key,
EntryFactory.Wrap wrap,
boolean skipRead,
boolean ignoreOwnership)
Insert an entry that exists in the data container into the context.
|
boolean |
wrapExternalEntry(InvocationContext ctx,
Object key,
CacheEntry externalEntry,
EntryFactory.Wrap wrap,
boolean skipRead)
Insert an external entry (e.g.
|
CacheEntry wrapEntryForReading(InvocationContext ctx, Object key, CacheEntry existing)
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 wrapexisting
- InterruptedException
- when things go wrong, usually trying to acquire a lock@Deprecated MVCCEntry wrapEntryForClear(InvocationContext ctx, Object key) throws InterruptedException
InterruptedException
@Deprecated MVCCEntry wrapEntryForReplace(InvocationContext ctx, ReplaceCommand cmd) throws InterruptedException
wrapEntryForWriting(InvocationContext, Object, Wrap, boolean, boolean)
instead.InterruptedException
@Deprecated MVCCEntry wrapEntryForRemove(InvocationContext ctx, Object key, boolean skipRead, boolean forInvalidation, boolean forceWrap) throws InterruptedException
wrapEntryForWriting(InvocationContext, Object, Wrap, boolean, boolean)
instead.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)
@Deprecated MVCCEntry wrapEntryForPut(InvocationContext ctx, Object key, InternalCacheEntry ice, boolean undeleteIfNeeded, FlagAffectedCommand cmd, boolean skipRead)
wrapEntryForWriting(InvocationContext, Object, Wrap, boolean, boolean)
instead.undeleteIfNeeded
- IgnoredskipRead
- if true
, if the key is not read during the put operation. Only used with Repeatable Read +MVCCEntry wrapEntryForWriting(InvocationContext ctx, Object key, EntryFactory.Wrap wrap, boolean skipRead, boolean ignoreOwnership)
boolean wrapExternalEntry(InvocationContext ctx, Object key, CacheEntry externalEntry, EntryFactory.Wrap wrap, boolean skipRead)
true
if the context entry was modified, false
otherwise.Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.