org.infinispan.container.entries
Class ClusteredRepeatableReadEntry

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

public class ClusteredRepeatableReadEntry
extends RepeatableReadEntry

A version of RepeatableReadEntry that can perform write-skew checks during prepare.

Since:
5.1
Author:
Manik Surtani

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
ClusteredRepeatableReadEntry(Object key, Object value, EntryVersion version, long lifespan)
           
 
Method Summary
 EntryVersion getVersion()
           
 boolean performWriteSkewCheck(DataContainer container)
           
 void setVersion(EntryVersion version)
          Sets the version on this entry.
 
Methods inherited from class org.infinispan.container.entries.RepeatableReadEntry
copyForUpdate, performLocalWriteSkewCheck
 
Methods inherited from class org.infinispan.container.entries.ReadCommittedEntry
commit, copyStateFlagsFrom, getKey, getLifespan, getMaxIdle, getStateFlags, getValue, isChanged, isCreated, isEvicted, isFlagSet, isLockPlaceholder, isNull, isRemoved, isValid, rollback, setChanged, setCreated, setEvicted, setFlag, setLifespan, setLockPlaceholder, setMaxIdle, setRemoved, setValid, setValue, 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

ClusteredRepeatableReadEntry

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

performWriteSkewCheck

public boolean performWriteSkewCheck(DataContainer container)

getVersion

public EntryVersion getVersion()
Specified by:
getVersion in interface Versioned
Overrides:
getVersion in class ReadCommittedEntry
Returns:
the version of the entry. May be null if versioning is not supported, and must never be null if versioning is supported.

setVersion

public void setVersion(EntryVersion version)
Description copied from interface: Versioned
Sets the version on this entry.

Specified by:
setVersion in interface Versioned
Overrides:
setVersion in class ReadCommittedEntry
Parameters:
version - version to set

-->

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