Class AcquisitionPolicy


  • public abstract class AcquisitionPolicy
    extends Object
    Policy for acquiring Locks
    • Method Detail

      • acquire

        public abstract boolean acquire​(@NotNull
                                        @NotNull Lock lock)
        Acquires the lock according to the implementation requirements
        Parameters:
        lock -
        Returns:
        true if the lock was acquired