public final class InMemoryCacheEntry<T> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TTL
Default TTL is one hour.
|
static long |
TO_MILLIS
externalized as constant.
|
| Constructor and Description |
|---|
InMemoryCacheEntry(T entry)
Parameterized contructor with target cached object.
|
InMemoryCacheEntry(T entry,
long timeToLive)
Parameterized contructor with target cached object.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getEntry()
Getter accessor for attribute 'entry'.
|
long |
getInsertedDate()
Getter accessor for attribute 'insertedDate'.
|
boolean |
hasReachTimeToLive()
Compute the timeout property.
|
public static final long DEFAULT_TTL
public static final long TO_MILLIS
public InMemoryCacheEntry(T entry)
entry - cached objectpublic InMemoryCacheEntry(T entry, long timeToLive)
entry - cached objectpublic boolean hasReachTimeToLive()
public long getInsertedDate()
public T getEntry()
Copyright © 2013–2017 FF4J. All rights reserved.