Package co.stateful
Interface Counters
-
- All Known Implementing Classes:
CdCounters,ReCounters
@Immutable public interface CountersCounters.- Since:
- 0.1
-
-
Method Detail
-
names
Iterable<String> names() throws IOException
Get list of them all.- Returns:
- List of counter names
- Throws:
IOException- If some I/O problem
-
create
Counter create(String name) throws IOException
Create a counter.- Parameters:
name- Name of it- Returns:
- Counter
- Throws:
IOException- If some I/O problem
-
delete
void delete(String name) throws IOException
Delete a counter.- Parameters:
name- Name of it- Throws:
IOException- If some I/O problem
-
get
Counter get(String name) throws IOException
Get one counter by name.- Parameters:
name- Name of it- Returns:
- Counter
- Throws:
IOException- If some I/O problem
-
-