Class List Method List File List

# Class: Vertx::Lock

Inherits:
  Object
  - Object
  - Vertx::Lock
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/lock.rb

## Overview

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.

## Instance Method Summary (collapse)

- - (void) release
  Release the lock.

## Instance Method Details

### - (`void`) release

This method returns an undefined value.

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

Raises:

- (`ArgumentError`)

    21
    22
    23
    24
    25
    26
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/lock.rb', line 21

    def release
      if !block_given?
        return @j_del.java_method(:release, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling release()"
    end