T
- the type of the element to cachepublic class CacheElementWrapper<T extends Serializable> extends Object
CacheElementProvider
which is enriched with
the creation timestamp of the cache entry and will be passed to the caching backend.Constructor and Description |
---|
CacheElementWrapper(T element)
Create a wrapper for the element.
|
CacheElementWrapper(T element,
long creationTimestamp)
Create a wrapper for the element.
|
Modifier and Type | Method and Description |
---|---|
long |
getCreationTimestamp() |
T |
getElement() |
public CacheElementWrapper(T element)
element
- the element to cache, can be nullpublic CacheElementWrapper(T element, long creationTimestamp)
element
- the element to cache, can be nullcreationTimestamp
- the creation timestamp of the cached elementpublic long getCreationTimestamp()
public T getElement()
Copyright © 2019 Communote team. All rights reserved.