Class ExclusiveResource

    • Constructor Detail

      • ExclusiveResource

        public ExclusiveResource​(String key,
                                 ExclusiveResource.LockMode lockMode)
        Create a new ExclusiveResource.
        Parameters:
        key - the identifier of the resource; never null or blank
        lockMode - the lock mode to use to synchronize access to the resource; never null