类 CachesEndpoint
java.lang.Object
org.springframework.boot.actuate.cache.CachesEndpoint
- 从以下版本开始:
- 2.1.0
- 作者:
- Johannes Edmeier, Stephane Nicoll
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Description of aCache
.static final class
Description of aCache
entry.static final class
Description of aCacheManager
.static final class
Description of the caches. -
构造器概要
构造器构造器说明CachesEndpoint
(Map<String, CacheManager> cacheManagers) Create a new endpoint with theCacheManager
instances to use. -
方法概要
修饰符和类型方法说明Return aCachesEndpoint.CacheDescriptor
for the specified cache.caches()
Return aCachesEndpoint.CachesDescriptor
of all availablecaches
.boolean
clearCache
(String cache, String cacheManager) Clear the specificCache
.void
Clear all the availablecaches
.
-
构造器详细资料
-
CachesEndpoint
Create a new endpoint with theCacheManager
instances to use.- 参数:
cacheManagers
- the cache managers to use, indexed by name
-
-
方法详细资料
-
caches
Return aCachesEndpoint.CachesDescriptor
of all availablecaches
.- 返回:
- a caches reports
-
cache
@ReadOperation public CachesEndpoint.CacheEntryDescriptor cache(@Selector String cache, @Nullable String cacheManager) Return aCachesEndpoint.CacheDescriptor
for the specified cache.- 参数:
cache
- the name of the cachecacheManager
- the name of the cacheManager (can benull
- 返回:
- the descriptor of the cache or
null
if no such cache exists - 抛出:
NonUniqueCacheException
- if more than one cache with that name exists and nocacheManager
was provided to identify a unique candidate
-
clearCaches
Clear all the availablecaches
. -
clearCache
Clear the specificCache
.- 参数:
cache
- the name of the cachecacheManager
- the name of the cacheManager (can benull
to match all)- 返回:
true
if the cache was cleared orfalse
if no such cache exists- 抛出:
NonUniqueCacheException
- if more than one cache with that name exists and nocacheManager
was provided to identify a unique candidate
-