org.infinispan.container.entries
Class RepeatableReadEntry
java.lang.Object
org.infinispan.container.entries.ReadCommittedEntry
org.infinispan.container.entries.RepeatableReadEntry
- All Implemented Interfaces:
- Map.Entry<Object,Object>, CacheEntry, MVCCEntry
- Direct Known Subclasses:
- NullMarkerEntryForRemoval
public class RepeatableReadEntry
- extends ReadCommittedEntry
An extension of ReadCommittedEntry
that provides Repeatable Read semantics
- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
Methods inherited from class org.infinispan.container.entries.ReadCommittedEntry |
commit, getKey, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isFlagSet, isNull, isRemoved, isValid, rollback, setChanged, setCreated, setFlag, setLifespan, setMaxIdle, setRemoved, setValid, setValue, toString, unsetFlag |
RepeatableReadEntry
public RepeatableReadEntry(Object key,
Object value,
long lifespan)
copyForUpdate
public void copyForUpdate(DataContainer container,
boolean writeSkewCheck)
- Description copied from interface:
MVCCEntry
- Makes internal copies of the entry for updates
- Specified by:
copyForUpdate
in interface MVCCEntry
- Overrides:
copyForUpdate
in class ReadCommittedEntry
- Parameters:
container
- data containerwriteSkewCheck
- if true, write skews are tested for and exceptions are thrown if detected. Only applicable
to IsolationLevel.REPEATABLE_READ
.
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.