public class ListCaches extends java.lang.Object implements RestReadView<ConfigResource>
Modifier and Type | Class and Description |
---|---|
static class |
ListCaches.CacheInfo |
static class |
ListCaches.CacheType |
static class |
ListCaches.EntriesInfo |
static class |
ListCaches.HitRatioInfo |
static class |
ListCaches.OutputFormat |
Constructor and Description |
---|
ListCaches(DynamicMap<com.google.common.cache.Cache<?,?>> cacheMap) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
apply(ConfigResource rsrc)
Process the view operation by reading from the resource.
|
java.util.Map<java.lang.String,ListCaches.CacheInfo> |
getCacheInfos() |
ListCaches |
setFormat(ListCaches.OutputFormat format) |
@Inject public ListCaches(DynamicMap<com.google.common.cache.Cache<?,?>> cacheMap)
public ListCaches setFormat(ListCaches.OutputFormat format)
public java.util.Map<java.lang.String,ListCaches.CacheInfo> getCacheInfos()
public java.lang.Object apply(ConfigResource rsrc)
RestReadView
apply
in interface RestReadView<ConfigResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.