org.infinispan.container.entries
Class NullMarkerEntryForRemoval
java.lang.Object
org.infinispan.container.entries.ReadCommittedEntry
org.infinispan.container.entries.RepeatableReadEntry
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
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.ReadCommittedEntry |
commit, getKey, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isFlagSet, rollback, setChanged, setCreated, setFlag, setLifespan, setMaxIdle, setRemoved, setValid, setValue, toString, unsetFlag |
NullMarkerEntryForRemoval
public NullMarkerEntryForRemoval(Object key)
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.
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.