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 boolean
exists(String name)
Does it exist?Lock
get(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 IOException
Description copied from interface:Locks
Does it exist?- Specified by:
exists
in 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 IOException
Description copied from interface:Locks
Get one lock by name.- Specified by:
get
in interfaceLocks
- Parameters:
name
- Name of lock- Returns:
- Lock
- Throws:
IOException
- If fails
-
-