Interface CacheState
- All Known Implementing Classes:
CacheStateEnum
public interface CacheState
The interface defines the different possible transitions from a CacheState to
another one
-
Method Summary
Modifier and TypeMethodDescriptionvoid
desync
(CacheContext cacheContext) The cache entry is marked as Desynchronizedvoid
error
(CacheContext cacheContext, CachedExceptionWrapper exception) The cache entry is marked in error state with the related exceptionvoid
refreshNeeded
(CacheContext cacheContext) The cache entry needs to be refreshedvoid
sync
(CacheContext cacheContext) The cache entry is marked as Synchronizedvoid
toBeDeleted
(CacheContext cacheContext) The cache entry is marked as to be deleted
-
Method Details
-
sync
The cache entry is marked as Synchronized- Parameters:
cacheContext
- the current cache context
-
desync
The cache entry is marked as Desynchronized- Parameters:
cacheContext
- the current cache context
-
refreshNeeded
The cache entry needs to be refreshed- Parameters:
cacheContext
- the current cache context
-
toBeDeleted
The cache entry is marked as to be deleted- Parameters:
cacheContext
- the current cache context
-
error
The cache entry is marked in error state with the related exception- Parameters:
cacheContext
- the current cache contextexception
- the wrapped met exception
-