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 TypeMethodDescriptionvoiddesync(CacheContext cacheContext) The cache entry is marked as Desynchronizedvoiderror(CacheContext cacheContext, CachedExceptionWrapper exception) The cache entry is marked in error state with the related exceptionvoidrefreshNeeded(CacheContext cacheContext) The cache entry needs to be refreshedvoidsync(CacheContext cacheContext) The cache entry is marked as SynchronizedvoidtoBeDeleted(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
-