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, StateChangingEntry, Versioned
- Direct Known Subclasses:
- NullMarkerEntry
public class NullMarkerEntryForRemoval
- extends RepeatableReadEntry
A null entry that is read in for removal
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class org.infinispan.container.entries.ReadCommittedEntry |
commit, copyStateFlagsFrom, getKey, getLifespan, getMaxIdle, getStateFlags, getValue, getVersion, isChanged, isCreated, isEvicted, isFlagSet, rollback, setChanged, setCreated, setEvicted, setFlag, setLifespan, setMaxIdle, setRemoved, setValid, setValue, setVersion, toString, undelete, unsetFlag |
NullMarkerEntryForRemoval
public NullMarkerEntryForRemoval(Object key,
EntryVersion version)
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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.