Package co.stateful.retry
Class ReLocks
- java.lang.Object
-
- co.stateful.retry.ReLocks
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String name)Does it exist?Lockget(String name)Get one lock by name.
-
-
-
Constructor Detail
-
ReLocks
public ReLocks(Locks orgn)
Ctor.- Parameters:
orgn- Original object
-
-
Method Detail
-
exists
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) public boolean exists(String name) throws IOExceptionDescription copied from interface:LocksDoes it exist?- Specified by:
existsin interfaceLocks- Parameters:
name- Name of lock- Returns:
- TRUE if the lock exists
- Throws:
IOException- If fails
-
get
@RetryOnFailure(verbose=false, attempts=20, delay=20L, unit=SECONDS) public Lock get(String name) throws IOExceptionDescription copied from interface:LocksGet one lock by name.- Specified by:
getin interfaceLocks- Parameters:
name- Name of lock- Returns:
- Lock
- Throws:
IOException- If fails
-
-