public class MetricCollectingSets extends BaseMetricCollectingCantor implements Sets
| Constructor and Description |
|---|
MetricCollectingSets(com.codahale.metrics.MetricRegistry metrics,
Sets delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String namespace,
String set,
Map<String,Long> entries) |
void |
add(String namespace,
String set,
String entry,
long weight) |
void |
create(String namespace) |
void |
delete(String namespace,
String set,
Collection<String> entries) |
void |
delete(String namespace,
String set,
long min,
long max) |
boolean |
delete(String namespace,
String set,
String entry) |
void |
drop(String namespace) |
Collection<String> |
entries(String namespace,
String set,
long min,
long max,
int start,
int count,
boolean ascending) |
Map<String,Long> |
get(String namespace,
String set,
long min,
long max,
int start,
int count,
boolean ascending) |
long |
inc(String namespace,
String set,
String entry,
long count) |
Map<String,Long> |
intersect(String namespace,
Collection<String> sets,
long min,
long max,
int start,
int count,
boolean ascending) |
Collection<String> |
namespaces() |
Map<String,Long> |
pop(String namespace,
String set,
long min,
long max,
int start,
int count,
boolean ascending) |
Collection<String> |
sets(String namespace) |
int |
size(String namespace,
String set) |
Map<String,Long> |
union(String namespace,
Collection<String> sets,
long min,
long max,
int start,
int count,
boolean ascending) |
Long |
weight(String namespace,
String set,
String entry) |
public MetricCollectingSets(com.codahale.metrics.MetricRegistry metrics,
Sets 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 add(String namespace, String set, String entry, long weight) throws IOException
add in interface SetsIOExceptionpublic void add(String namespace, String set, Map<String,Long> entries) throws IOException
add in interface SetsIOExceptionpublic Collection<String> entries(String namespace, String set, long min, long max, int start, int count, boolean ascending) throws IOException
entries in interface SetsIOExceptionpublic Map<String,Long> get(String namespace, String set, long min, long max, int start, int count, boolean ascending) throws IOException
get in interface SetsIOExceptionpublic void delete(String namespace, String set, long min, long max) throws IOException
delete in interface SetsIOExceptionpublic boolean delete(String namespace, String set, String entry) throws IOException
delete in interface SetsIOExceptionpublic void delete(String namespace, String set, Collection<String> entries) throws IOException
delete in interface SetsIOExceptionpublic Map<String,Long> union(String namespace, Collection<String> sets, long min, long max, int start, int count, boolean ascending) throws IOException
union in interface SetsIOExceptionpublic Map<String,Long> intersect(String namespace, Collection<String> sets, long min, long max, int start, int count, boolean ascending) throws IOException
intersect in interface SetsIOExceptionpublic Map<String,Long> pop(String namespace, String set, long min, long max, int start, int count, boolean ascending) throws IOException
pop in interface SetsIOExceptionpublic Collection<String> sets(String namespace) throws IOException
sets in interface SetsIOExceptionpublic int size(String namespace, String set) throws IOException
size in interface SetsIOExceptionpublic Long weight(String namespace, String set, String entry) throws IOException
weight in interface SetsIOExceptionpublic long inc(String namespace, String set, String entry, long count) throws IOException
inc in interface SetsIOExceptionCopyright © 2022. All rights reserved.