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 isNull()
          Tests whether the entry represents a null value, typically used for repeatable read.
 boolean isRemoved()
           
 boolean isValid()
           
 
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, isFlagSet, 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

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.

Google Analytics

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