Enum Constant Summary
Enum Constants
Enum Constant
Description
DESYNCHRONIZED
The cache content is not synchronized with the application
ERROR
The data cannot be downloaded / parsed / validated
REFRESH_NEEDED
Nothing / Expired content is stored in the cache
SYNCHRONIZED
The application and the cache content are synchronized
TO_BE_DELETED
The cache content needs to be deleted
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Enum Constant Details
Nothing / Expired content is stored in the cache
The cache content is not synchronized with the application
The application and the cache content are synchronized
The data cannot be downloaded / parsed / validated
The cache content needs to be deleted
Method Details
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
The cache entry is marked as Synchronized
Specified by:
sync
in interface CacheState
Parameters:
cacheContext
- the current cache context
The cache entry is marked as Desynchronized
Specified by:
desync
in interface CacheState
Parameters:
cacheContext
- the current cache context
The cache entry needs to be refreshed
Specified by:
refreshNeeded
in interface CacheState
Parameters:
cacheContext
- the current cache context
The cache entry is marked as to be deleted
Specified by:
toBeDeleted
in interface CacheState
Parameters:
cacheContext
- the current cache context
The cache entry is marked in error state with the related exception
Specified by:
error
in interface CacheState
Parameters:
cacheContext
- the current cache context
exception
- the wrapped met exception