public interface CacheMonitorMXBean
Modifier and Type | Method and Description |
---|---|
long |
getCacheSize()
Returns the number of entries in all monitored caches.
|
List<CacheStats> |
getCacheStatsList()
Returns a list containing a
CacheStats instance for each monitored cache. |
long |
getEvictionCount()
Returns the number of times an entry has been automatically evicted.
|
long |
getHitCount()
Returns the number times cache lookup methods have returned a cached value.
|
long |
getLoadExceptionCount()
Returns the number of times cache lookup methods threw an exception while loading a new value.
|
long |
getLoadSuccessCount()
Returns the number of times cache lookup methods have successfully loaded a new value.
|
long |
getMissCount()
Returns the number of times cache lookup methods have returned an uncached value, or null.
|
long |
getTotalLoadTime()
Returns the total number of nanoseconds the cache has spent loading new values.
|
long |
invalidateCaches()
Invalidates all entries in all caches.
|
long |
invalidateTenantCaches(String tenantId)
Invalidates all caches of the given tenant.
|
long |
invalidateUserCaches(String tenantId,
String userName)
Invalidates all caches of the given user.
|
long invalidateCaches()
long invalidateTenantCaches(String tenantId)
tenantId
- The tenant to invalidate all caches for.long invalidateUserCaches(String tenantId, String userName)
tenantId
- The Id of the tenant for which all user caches should be invalidated.userName
- The name of the user for which all caches should be invalidated.long getCacheSize()
long getHitCount()
long getMissCount()
long getLoadSuccessCount()
long getLoadExceptionCount()
long getTotalLoadTime()
long getEvictionCount()
@Nonnull List<CacheStats> getCacheStatsList()
CacheStats
instance for each monitored cache.Copyright © 2019 SAP SE. All rights reserved.