Package org.infinispan.container.entries
Class NullCacheEntry<K,V> 
java.lang.Object
org.infinispan.container.entries.NullCacheEntry<K,V> 
- All Implemented Interfaces:
- Cloneable,- Map.Entry<K,,- V> - CacheEntry<K,,- V> - MetadataAware
- 
Method SummaryModifier and TypeMethodDescriptionfinal CacheEntryclone()voidcommit(DataContainer container) Commits changesstatic <K,V> NullCacheEntry <K, V> getKey()Retrieves the key to this entrylonglongGet metadata of this cache entry.getValue()Retrieves the value of this entrybooleanbooleanbooleanbooleanisNull()Tests whether the entry represents a null value, typically used for repeatable read.booleanvoidsetChanged(boolean changed) voidsetCreated(boolean created) voidsetEvicted(boolean evicted) voidsetMetadata(Metadata metadata) Set the metadata in the cache entry.voidsetRemoved(boolean removed) voidsetSkipLookup(boolean skipLookup) Sets the value of the entry, returning the previous valuebooleantoString()Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.container.entries.CacheEntrygetCreated, getInternalMetadata, getLastUsed, setCreated, setInternalMetadata, setLastUsed
- 
Method Details- 
getInstance
- 
isNullpublic boolean isNull()Description copied from interface:CacheEntryTests whether the entry represents a null value, typically used for repeatable read.- Specified by:
- isNullin interface- CacheEntry<K,- V> 
- Returns:
- true if this represents a null, false otherwise.
 
- 
isChangedpublic boolean isChanged()- Specified by:
- isChangedin interface- CacheEntry<K,- V> 
- Returns:
- true if this entry has changed since being read from the container, false otherwise.
 
- 
isCreatedpublic boolean isCreated()- Specified by:
- isCreatedin interface- CacheEntry<K,- V> 
- Returns:
- true if this entry has been newly created, false otherwise.
 
- 
isRemovedpublic boolean isRemoved()- Specified by:
- isRemovedin interface- CacheEntry<K,- V> 
- Returns:
- true if this entry has been removed since being read from the container, false otherwise.
 
- 
isEvictedpublic boolean isEvicted()- Specified by:
- isEvictedin interface- CacheEntry<K,- V> 
- Returns:
- true if this entry has been evicted since being read from the container, false otherwise.
 
- 
getKeyDescription copied from interface:CacheEntryRetrieves the key to this entry
- 
getValueDescription copied from interface:CacheEntryRetrieves the value of this entry
- 
getLifespanpublic long getLifespan()- Specified by:
- getLifespanin interface- CacheEntry<K,- V> 
- Returns:
- retrieves the lifespan of this entry. -1 means an unlimited lifespan.
 
- 
getMaxIdlepublic long getMaxIdle()- Specified by:
- getMaxIdlein interface- CacheEntry<K,- V> 
- Returns:
- the maximum allowed time for which this entry can be idle, after which it is considered expired.
 
- 
skipLookuppublic boolean skipLookup()- Specified by:
- skipLookupin interface- CacheEntry<K,- V> 
- Returns:
- trueif the value must not be fetch from an external source
 
- 
setValueDescription copied from interface:CacheEntrySets the value of the entry, returning the previous value
- 
commitDescription copied from interface:CacheEntryCommits changes- Specified by:
- commitin interface- CacheEntry<K,- V> 
- Parameters:
- container- data container to commit to
 
- 
setChangedpublic void setChanged(boolean changed) - Specified by:
- setChangedin interface- CacheEntry<K,- V> 
 
- 
setCreatedpublic void setCreated(boolean created) - Specified by:
- setCreatedin interface- CacheEntry<K,- V> 
 
- 
setRemovedpublic void setRemoved(boolean removed) - Specified by:
- setRemovedin interface- CacheEntry<K,- V> 
 
- 
setEvictedpublic void setEvicted(boolean evicted) - Specified by:
- setEvictedin interface- CacheEntry<K,- V> 
 
- 
setSkipLookuppublic void setSkipLookup(boolean skipLookup) Description copied from interface:CacheEntry- Specified by:
- setSkipLookupin interface- CacheEntry<K,- V> 
- Parameters:
- skipLookup-
 
- 
clone
- 
getMetadataDescription copied from interface:MetadataAwareGet metadata of this cache entry.- Specified by:
- getMetadatain interface- MetadataAware
- Returns:
- a Metadata instance
 
- 
setMetadataDescription copied from interface:MetadataAwareSet the metadata in the cache entry.- Specified by:
- setMetadatain interface- MetadataAware
- Parameters:
- metadata- to apply to the cache entry
 
- 
toString
 
-