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
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)

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, long lifespan)
           
 
Method Summary
 void copyForUpdate(DataContainer container, boolean writeSkewCheck)
          Makes internal copies of the entry for updates
 
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
 
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,
                           long lifespan)
Method Detail

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 container
writeSkewCheck - if true, write skews are tested for and exceptions are thrown if detected. Only applicable to IsolationLevel.REPEATABLE_READ.

Google Analytics

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