Package co.stateful.retry
Class ReCounters
- java.lang.Object
-
- co.stateful.retry.ReCounters
-
-
Constructor Summary
Constructors Constructor Description ReCounters(Counters orgn)
Ctor.
-
-
-
Constructor Detail
-
ReCounters
public ReCounters(Counters orgn)
Ctor.- Parameters:
orgn
- Original object
-
-
Method Detail
-
names
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) 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
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) 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
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) 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
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) 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
-
-