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 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
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) public Counter create(String name) throws IOExceptionDescription 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
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) public void delete(String name) throws IOExceptionDescription copied from interface:CountersDelete a counter.- Specified by:
deletein 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 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
-
-