org.infinispan.container.entries
Interface MVCCEntry

All Superinterfaces:
CacheEntry, Map.Entry<Object,Object>, StateChangingEntry, Versioned
All Known Implementing Classes:
ClusteredRepeatableReadEntry, NullMarkerEntry, NullMarkerEntryForRemoval, ReadCommittedEntry, RepeatableReadEntry

public interface MVCCEntry
extends CacheEntry, StateChangingEntry

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
 void setLockPlaceholder(boolean placeholder)
          Marks an entry as a lock placeholder
 
Methods inherited from interface org.infinispan.container.entries.CacheEntry
commit, getKey, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isEvicted, isLockPlaceholder, isNull, isRemoved, isValid, rollback, setCreated, setEvicted, setLifespan, setMaxIdle, setRemoved, setValid, setValue, undelete
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 
Methods inherited from interface org.infinispan.container.entries.versioned.Versioned
getVersion, setVersion
 
Methods inherited from interface org.infinispan.container.entries.StateChangingEntry
copyStateFlagsFrom, getStateFlags
 

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.

setLockPlaceholder

void setLockPlaceholder(boolean placeholder)
Marks an entry as a lock placeholder

Parameters:
placeholder - if true, the entry is marked as a lock placeholder. If false, the entry is un-marked as a placeholder.

-->

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