org.infinispan.container.entries
Class NullMarkerEntryForRemoval

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

public class NullMarkerEntryForRemoval
extends RepeatableReadEntry

A null entry that is read in for removal

Since:
4.0
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
NullMarkerEntryForRemoval(Object key)
           
 
Method Summary
 boolean isLockPlaceholder()
           
 boolean isNull()
          Tests whether the entry represents a null value, typically used for repeatable read.
 boolean isRemoved()
           
 boolean isValid()
           
 void setLockPlaceholder(boolean placeholder)
          Marks an entry as a lock placeholder
 
Methods inherited from class org.infinispan.container.entries.RepeatableReadEntry
copyForUpdate
 
Methods inherited from class org.infinispan.container.entries.ReadCommittedEntry
commit, getKey, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isEvicted, isFlagSet, rollback, setChanged, setCreated, setEvicted, 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

NullMarkerEntryForRemoval

public NullMarkerEntryForRemoval(Object key)
Method Detail

isNull

public final boolean isNull()
Description copied from interface: CacheEntry
Tests whether the entry represents a null value, typically used for repeatable read.

Specified by:
isNull in interface CacheEntry
Overrides:
isNull in class ReadCommittedEntry
Returns:
always returns true

isRemoved

public final boolean isRemoved()
Specified by:
isRemoved in interface CacheEntry
Overrides:
isRemoved in class ReadCommittedEntry
Returns:
always returns true so that any get commands, upon getting this entry, will ignore the entry as though it were removed.

isValid

public final boolean isValid()
Specified by:
isValid in interface CacheEntry
Overrides:
isValid in class ReadCommittedEntry
Returns:
always returns true so that any get commands, upon getting this entry, will ignore the entry as though it were invalid.

isLockPlaceholder

public boolean isLockPlaceholder()
Specified by:
isLockPlaceholder in interface CacheEntry
Overrides:
isLockPlaceholder in class ReadCommittedEntry
Returns:
true if this entry is a placeholder for the sake of acquiring a lock; and false if it is a real entry.

setLockPlaceholder

public void setLockPlaceholder(boolean placeholder)
Description copied from interface: MVCCEntry
Marks an entry as a lock placeholder

Specified by:
setLockPlaceholder in interface MVCCEntry
Overrides:
setLockPlaceholder in class ReadCommittedEntry
Parameters:
placeholder - if true, the entry is marked as a lock placeholder. If false, the entry is un-marked as a placeholder.

-->

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