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 booleanexists(String name)Does it exist?Lockget(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:LocksDoes it exist?- Specified by:
existsin 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 IOExceptionDescription copied from interface:LocksGet one lock by name.- Specified by:
getin interfaceLocks- Parameters:
name- Name of lock- Returns:
- Lock
- Throws:
IOException- If fails
-
-