org.infinispan.container.entries
Interface MVCCEntry

All Superinterfaces:
CacheEntry, Serializable
All Known Implementing Classes:
NullMarkerEntry, NullMarkerEntryForRemoval, ReadCommittedEntry, RepeatableReadEntry

public interface MVCCEntry
extends CacheEntry

An entry that can be safely copied when updates are made, to provide MVCC semantics

Since:
4.0
Author:
Manik Surtani

Method Summary
 void copyForUpdate(DataContainer container, boolean writeSkewCheck)
          Makes internal copies of the entry for updates
 
Methods inherited from interface org.infinispan.container.entries.CacheEntry
commit, getKey, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isNull, isRemoved, isValid, rollback, setCreated, setLifespan, setMaxIdle, setRemoved, setValid, setValue
 

Method Detail

copyForUpdate

void copyForUpdate(DataContainer container,
                   boolean writeSkewCheck)
Makes internal copies of the entry for updates

Parameters:
container - data container
writeSkewCheck - if true, write skews are tested for and exceptions are thrown if detected. Only applicable to IsolationLevel.REPEATABLE_READ.


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