public class Expiration
extends java.lang.Object
Constructor | Description |
---|---|
Expiration() |
Instantiates expiration to provide expiration values for items in cache.
|
Expiration(ExpirationType expirationType) |
Instantiates expiration to provide expiration values for items in cache.
|
Expiration(ExpirationType expirationType,
TimeSpan expireAfter) |
Instantiates expiration to provide expiration values for items in cache.
|
Modifier and Type | Method | Description |
---|---|---|
ExpirationType |
getExpirationType() |
The type of expiration to be used while expiring items in cache.
|
TimeSpan |
getExpireAfter() |
Gets the value of time in the form of
TimeSpan that shows after how much time, the item in cache is to be expired. |
void |
setExpireAfter(TimeSpan value) |
Sets the value of time in the form of
TimeSpan that shows after how much time, the item in cache is to be expired. |
public Expiration()
public Expiration(ExpirationType expirationType)
expirationType
- Enum indicating type of expiration to be used while expiring items in cache.public Expiration(ExpirationType expirationType, TimeSpan expireAfter)
expirationType
- Enum indicating type of expiration to be used while expiring items in cache.expireAfter
- Value of time in the form of TimeSpan
that shows after how much time, the item in cache is to be expired.public final TimeSpan getExpireAfter()
TimeSpan
that shows after how much time, the item in cache is to be expired.public final void setExpireAfter(TimeSpan value)
TimeSpan
that shows after how much time, the item in cache is to be expired.value
- The TimeSpan instance that indicates the time after which item will be expired from cache.public final ExpirationType getExpirationType()