Package co.stateful.cached
Class CdLocks
- java.lang.Object
-
- co.stateful.cached.CdLocks
-
-
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
-
CdLocks
public CdLocks(Locks orgn)
Ctor.- Parameters:
orgn
- Original object
-
-
Method Detail
-
exists
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
@Cacheable(lifetime=1, unit=HOURS) 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
-
-