Package | Description |
---|---|
javax.cache.expiry |
This package contains expiry policies
|
Modifier and Type | Field | Description |
---|---|---|
static Duration |
Duration.ETERNAL |
ETERNAL (forever).
|
static Duration |
Duration.FIVE_MINUTES |
Five minutes.
|
static Duration |
Duration.ONE_DAY |
One day.
|
static Duration |
Duration.ONE_HOUR |
One hour.
|
static Duration |
Duration.ONE_MINUTE |
One minute.
|
static Duration |
Duration.TEN_MINUTES |
Ten minutes.
|
static Duration |
Duration.THIRTY_MINUTES |
Thirty minutes.
|
static Duration |
Duration.TWENTY_MINUTES |
Twenty minutes.
|
static Duration |
Duration.ZERO |
Zero (no time).
|
Modifier and Type | Method | Description |
---|---|---|
Duration |
AccessedExpiryPolicy.getExpiryForAccess() |
Gets the
Duration before an accessed Cache.Entry is
considered expired. |
Duration |
CreatedExpiryPolicy.getExpiryForAccess() |
Gets the
Duration before an accessed Cache.Entry is
considered expired. |
Duration |
EternalExpiryPolicy.getExpiryForAccess() |
Gets the
Duration before an accessed Cache.Entry is
considered expired. |
Duration |
ExpiryPolicy.getExpiryForAccess() |
Gets the
Duration before an accessed Cache.Entry is
considered expired. |
Duration |
ModifiedExpiryPolicy.getExpiryForAccess() |
Gets the
Duration before an accessed Cache.Entry is
considered expired. |
Duration |
TouchedExpiryPolicy.getExpiryForAccess() |
Gets the
Duration before an accessed Cache.Entry is
considered expired. |
Duration |
AccessedExpiryPolicy.getExpiryForCreation() |
Gets the
Duration before a newly created Cache.Entry is considered
expired. |
Duration |
CreatedExpiryPolicy.getExpiryForCreation() |
Gets the
Duration before a newly created Cache.Entry is considered
expired. |
Duration |
EternalExpiryPolicy.getExpiryForCreation() |
Gets the
Duration before a newly created Cache.Entry is considered
expired. |
Duration |
ExpiryPolicy.getExpiryForCreation() |
Gets the
Duration before a newly created Cache.Entry is considered
expired. |
Duration |
ModifiedExpiryPolicy.getExpiryForCreation() |
Gets the
Duration before a newly created Cache.Entry is considered
expired. |
Duration |
TouchedExpiryPolicy.getExpiryForCreation() |
Gets the
Duration before a newly created Cache.Entry is considered
expired. |
Duration |
AccessedExpiryPolicy.getExpiryForUpdate() |
Gets the
Duration before an updated Cache.Entry is considered
expired. |
Duration |
CreatedExpiryPolicy.getExpiryForUpdate() |
Gets the
Duration before an updated Cache.Entry is considered
expired. |
Duration |
EternalExpiryPolicy.getExpiryForUpdate() |
Gets the
Duration before an updated Cache.Entry is considered
expired. |
Duration |
ExpiryPolicy.getExpiryForUpdate() |
Gets the
Duration before an updated Cache.Entry is considered
expired. |
Duration |
ModifiedExpiryPolicy.getExpiryForUpdate() |
Gets the
Duration before an updated Cache.Entry is considered
expired. |
Duration |
TouchedExpiryPolicy.getExpiryForUpdate() |
Gets the
Duration before an updated Cache.Entry is considered
expired. |
Modifier and Type | Method | Description |
---|---|---|
static Factory<ExpiryPolicy> |
AccessedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for an Accessed ExpiryPolicy . |
static Factory<ExpiryPolicy> |
CreatedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Created ExpiryPolicy . |
static Factory<ExpiryPolicy> |
ModifiedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Modified ExpiryPolicy . |
static Factory<ExpiryPolicy> |
TouchedExpiryPolicy.factoryOf(Duration duration) |
Obtains a
Factory for a Touched ExpiryPolicy . |
Constructor | Description |
---|---|
AccessedExpiryPolicy(Duration expiryDuration) |
Constructs an
AccessedExpiryPolicy ExpiryPolicy . |
CreatedExpiryPolicy(Duration expiryDuration) |
Constructs an
CreatedExpiryPolicy ExpiryPolicy . |
ModifiedExpiryPolicy(Duration expiryDuration) |
Constructs an
ModifiedExpiryPolicy ExpiryPolicy . |
TouchedExpiryPolicy(Duration expiryDuration) |
Constructs an
TouchedExpiryPolicy ExpiryPolicy . |
Copyright © 2017. All rights reserved.