CacheEntry: Support caching of jsonobject
This will allow to store json objects in the cache. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
parent
2ff16fa2a5
commit
a028e59699
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
package com.scylladb.jmx.api;
|
package com.scylladb.jmx.api;
|
||||||
|
|
||||||
|
import javax.json.JsonObject;
|
||||||
|
|
||||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||||
|
|
||||||
public class CacheEntry {
|
public class CacheEntry {
|
||||||
@ -43,4 +45,8 @@ public class CacheEntry {
|
|||||||
public EstimatedHistogram getEstimatedHistogram() {
|
public EstimatedHistogram getEstimatedHistogram() {
|
||||||
return (EstimatedHistogram)value;
|
return (EstimatedHistogram)value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JsonObject jsonObject() {
|
||||||
|
return (JsonObject) value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user