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;
|
||||
|
||||
import javax.json.JsonObject;
|
||||
|
||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||
|
||||
public class CacheEntry {
|
||||
@ -43,4 +45,8 @@ public class CacheEntry {
|
||||
public EstimatedHistogram getEstimatedHistogram() {
|
||||
return (EstimatedHistogram)value;
|
||||
}
|
||||
|
||||
public JsonObject jsonObject() {
|
||||
return (JsonObject) value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user