public class CacheEntry extends Object
This is used for operations that are identified by a key but that could benefit from additional information that's
available in an element when it can be found in the cache. If the element isn't available, it will be null
.
Constructor and Description |
---|
CacheEntry(Object key,
Element element)
Creates a new cache entry.
|
Modifier and Type | Method and Description |
---|---|
Element |
getElement()
Retrieves the element of this cache entry.
|
Object |
getKey()
Retrieves the key of this cache entry.
|
public Object getKey()
public Element getElement()
null
if the cache entry didn't have an element that
belong to the key at the time of creation.Copyright 2001-2020, Terracotta, Inc.