org.infinispan.container.entries
Class RepeatableReadEntry

java.lang.Object
  extended by org.infinispan.container.entries.ReadCommittedEntry
      extended by org.infinispan.container.entries.RepeatableReadEntry
All Implemented Interfaces:
Map.Entry<Object,Object>, CacheEntry, MVCCEntry, StateChangingEntry, Versioned
Direct Known Subclasses:
ClusteredRepeatableReadEntry, NullMarkerEntryForRemoval

public class RepeatableReadEntry
extends ReadCommittedEntry

An extension of ReadCommittedEntry that provides Repeatable Read semantics

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.infinispan.container.entries.ReadCommittedEntry
ReadCommittedEntry.Flags
 
Field Summary
 
Fields inherited from class org.infinispan.container.entries.ReadCommittedEntry
flags, key, oldValue, value
 
Constructor Summary
RepeatableReadEntry(Object key, Object value, EntryVersion version, long lifespan)
           
 
Method Summary
 void copyForUpdate(DataContainer container, boolean localModeWriteSkewCheck)
          Makes internal copies of the entry for updates
 void performLocalWriteSkewCheck(DataContainer container, boolean alreadyCopied)
           
 
Methods inherited from class org.infinispan.container.entries.ReadCommittedEntry
commit, copyStateFlagsFrom, getKey, getLifespan, getMaxIdle, getStateFlags, getValue, getVersion, isChanged, isCreated, isEvicted, isFlagSet, isLockPlaceholder, isNull, isRemoved, isValid, rollback, setChanged, setCreated, setEvicted, setFlag, setLifespan, setLockPlaceholder, setMaxIdle, setRemoved, setValid, setValue, setVersion, toString, undelete, unsetFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

RepeatableReadEntry

public RepeatableReadEntry(Object key,
                           Object value,
                           EntryVersion version,
                           long lifespan)
Method Detail

copyForUpdate

public void copyForUpdate(DataContainer container,
                          boolean localModeWriteSkewCheck)
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 container
localModeWriteSkewCheck - if true, write skews are tested for and exceptions are thrown if detected. Only applicable to IsolationLevel.REPEATABLE_READ.

performLocalWriteSkewCheck

public void performLocalWriteSkewCheck(DataContainer container,
                                       boolean alreadyCopied)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.