Class LockOptionsHelper

  • public final class LockOptionsHelper
    extends Object
    • Method Detail

      • applyPropertiesToLockOptions

        public static void applyPropertiesToLockOptions​(Map<String,​Object> props,
                                                        Supplier<LockOptions> lockOptionsSupplier)
        Applies configuration properties on a LockOptions instance, passed as a supplier so to make it possible to skip allocating the LockOptions instance if there's nothing to set.
        props - The configuration properties
        lockOptionsSupplier - The reference to the lock to modify