Package co.stateful.cached
Class CdCounters
- java.lang.Object
-
- co.stateful.cached.CdCounters
-
-
Constructor Summary
Constructors Constructor Description CdCounters(Counters orgn)Ctor.
-
-
-
Constructor Detail
-
CdCounters
public CdCounters(Counters orgn)
Ctor.- Parameters:
orgn- Original object
-
-
Method Detail
-
names
@Cacheable(lifetime=1, unit=HOURS) public Iterable<String> names() throws IOExceptionDescription copied from interface:CountersGet list of them all.- Specified by:
namesin interfaceCounters- Returns:
- List of counter names
- Throws:
IOException- If some I/O problem
-
create
@FlushAfter public Counter create(String name) throws IOException
Description copied from interface:CountersCreate a counter.- Specified by:
createin interfaceCounters- Parameters:
name- Name of it- Returns:
- Counter
- Throws:
IOException- If some I/O problem
-
delete
@FlushAfter public void delete(String name) throws IOException
Description copied from interface:CountersDelete a counter.- Specified by:
deletein interfaceCounters- Parameters:
name- Name of it- Throws:
IOException- If some I/O problem
-
get
@Cacheable(lifetime=1, unit=HOURS) public Counter get(String name) throws IOExceptionDescription copied from interface:CountersGet one counter by name.- Specified by:
getin interfaceCounters- Parameters:
name- Name of it- Returns:
- Counter
- Throws:
IOException- If some I/O problem
-
-