Package co.stateful.retry
Class ReSttc
- java.lang.Object
-
- co.stateful.retry.ReSttc
-
- All Implemented Interfaces:
Sttc
@Immutable @Loggable(1) public final class ReSttc extends Object implements Sttc
Retriable Sttc.Just wrap your original
Sttcobject with this decorator and all requests to stateful.co server will be retried a few times before giving up and throwing a runtime exception. It is highly recommended to use this decorator in production environment. The Internet is not a stable environment, and connection failures is a regular event.- Since:
- 0.5
-
-
Constructor Detail
-
ReSttc
public ReSttc(Sttc orgn)
Ctor.- Parameters:
orgn- Original object
-
-
Method Detail
-
counters
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) public Counters counters() throws IOExceptionDescription copied from interface:SttcCounters.- Specified by:
countersin interfaceSttc- Returns:
- Counters
- Throws:
IOException- If some I/O problem
-
locks
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) public Locks locks() throws IOExceptionDescription copied from interface:SttcLocks.- Specified by:
locksin interfaceSttc- Returns:
- Locks
- Throws:
IOException- If some I/O problem
-
-