public enum PersistencesRestoreMethod extends Enum<PersistencesRestoreMethod>
Enum Constant and Description |
---|
DELETE_ALL
Do not used any of the "old" caching value objects, be ensure that the "old" storage is cleaned up and the map remains empty after restore.
|
LOAD_ALL
Load all values from the "old" storage and restoring the map with them, any cleanup will be performed by the "cleanup" method.
Setting a new expiration time using the default value. |
LOAD_WITHIN_EXPIRETIME
Load only the values from "old" storage which you can determine that is below expireDateTime, reminder persisted values is removed.
Using expiration time if can be determined from "object" otherwise use default value. |
NOTHING
No action is perform on the persistence storage and the map remains empty after restoring and any persisted values remains untouched.
And any previous persisted object will remain in the "storage" untouched are someone else has to "deal" with those objects. |
Modifier and Type | Method and Description |
---|---|
static PersistencesRestoreMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistencesRestoreMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistencesRestoreMethod NOTHING
public static final PersistencesRestoreMethod DELETE_ALL
public static final PersistencesRestoreMethod LOAD_ALL
public static final PersistencesRestoreMethod LOAD_WITHIN_EXPIRETIME
public static PersistencesRestoreMethod[] values()
for (PersistencesRestoreMethod c : PersistencesRestoreMethod.values()) System.out.println(c);
public static PersistencesRestoreMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.