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 IOException
Description copied from interface:Counters
Get list of them all.- Specified by:
names
in 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:Counters
Create a counter.- Specified by:
create
in 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:Counters
Delete a counter.- Specified by:
delete
in 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 IOException
Description copied from interface:Counters
Get one counter by name.- Specified by:
get
in interfaceCounters
- Parameters:
name
- Name of it- Returns:
- Counter
- Throws:
IOException
- If some I/O problem
-
-