Interface Cacheable
-
- All Known Implementing Classes:
AbstractOAuth2TokenService,DefaultOAuth2TokenService,XsuaaOAuth2TokenService
public interface CacheableInterface for components that manage a cache configured withCacheConfiguration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache()Clears the cache of the component.CacheConfigurationgetCacheConfiguration()Provides the cache configuration of the component.ObjectgetCacheStatistics()This returns an implementation specific statistics object if the underlying cache supports it and cache statistics have been enabled in theCacheConfiguration.
-
-
-
Method Detail
-
getCacheConfiguration
@Nonnull CacheConfiguration getCacheConfiguration()
Provides the cache configuration of the component. Must not be null.- Returns:
- the cache configuration
-
clearCache
void clearCache()
Clears the cache of the component.
-
getCacheStatistics
@Nullable Object getCacheStatistics()
This returns an implementation specific statistics object if the underlying cache supports it and cache statistics have been enabled in theCacheConfiguration. Use with care. The type of the statistics object might change in later versions.- Returns:
- the cache statistics object.
-
-