Class ReLocks

  • All Implemented Interfaces:
    Locks

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