public class MetricCollectingObjects extends BaseMetricCollectingCantor implements Objects
| Constructor and Description |
|---|
MetricCollectingObjects(com.codahale.metrics.MetricRegistry metrics,
Objects delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(String namespace) |
boolean |
delete(String namespace,
String key) |
void |
drop(String namespace) |
byte[] |
get(String namespace,
String key) |
Collection<String> |
keys(String namespace,
int start,
int count) |
Collection<String> |
namespaces() |
int |
size(String namespace) |
void |
store(String namespace,
String key,
byte[] bytes) |
public MetricCollectingObjects(com.codahale.metrics.MetricRegistry metrics,
Objects delegate)
public Collection<String> namespaces() throws IOException
namespaces in interface NamespaceableIOExceptionpublic void create(String namespace) throws IOException
create in interface NamespaceableIOExceptionpublic void drop(String namespace) throws IOException
drop in interface NamespaceableIOExceptionpublic void store(String namespace, String key, byte[] bytes) throws IOException
store in interface ObjectsIOExceptionpublic byte[] get(String namespace, String key) throws IOException
get in interface ObjectsIOExceptionpublic boolean delete(String namespace, String key) throws IOException
delete in interface ObjectsIOExceptionpublic Collection<String> keys(String namespace, int start, int count) throws IOException
keys in interface ObjectsIOExceptionpublic int size(String namespace) throws IOException
size in interface ObjectsIOExceptionCopyright © 2021. All rights reserved.