Class CdLocks

  • All Implemented Interfaces:
    Locks

    @Immutable
    @Loggable(1)
    public final class CdLocks
    extends Object
    implements Locks
    Cached locks.
    Since:
    0.7
    • 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 interface Locks
        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 interface Locks
        Parameters:
        name - Name of lock
        Returns:
        Lock
        Throws:
        IOException - If fails