public class CacheElementInfo extends Object
Constructor and Description |
---|
CacheElementInfo(String key,
boolean eternal,
String createTime,
long maxLifeSeconds,
long expiresInSeconds)
Parameterized constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCreateTime() |
long |
getExpiresInSeconds()
Ignored if isEternal
|
String |
getKey() |
long |
getMaxLifeSeconds()
Ignored if isEternal
|
boolean |
isEternal() |
String |
toString() |
@ConstructorProperties(value={"key","eternal","createTime","maxLifeSeconds","expiresInSeconds"}) public CacheElementInfo(String key, boolean eternal, String createTime, long maxLifeSeconds, long expiresInSeconds)
key
- element keyeternal
- is it eternalcreateTime
- when it was createdmaxLifeSeconds
- max lifeexpiresInSeconds
- when it will expirepublic boolean isEternal()
public String getCreateTime()
public long getMaxLifeSeconds()
public long getExpiresInSeconds()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.