Package: io.vertx.groovy.core.shareddata

## [Groovy] Class Lock

- io.vertx.groovy.core.shareddata.Lock

- An asynchronous exclusive lock which can be obtained from any node in the cluster.

  When the lock is obtained, no-one else in the cluster can obtain the lock with the same name until the lock is released.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Lock (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.lang.Object` | `getDelegate()`
    `void` | `release()` Release the lock.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### Lock(java.lang.Object delegate)

  - ### Method Detail

    - #### java.lang.Object getDelegate()

    - #### void release()

      Release the lock. Once the lock is released another will be able to obtain the lock.