Class List Method List File List

# Class: Vertx::Lock

Inherits:
  Object
  - Object
  - Vertx::Lock
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/lock.rb

## Instance Method Summary (collapse)

- - (Lock) initialize(j_del) constructor
  A new instance of Lock.
- - (Object) j_del
- - (Object) release

## Constructor Details

### - (`Lock`) initialize(j_del)

Returns a new instance of Lock

    11
    12
    13
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/lock.rb', line 11

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) j_del

    16
    17
    18
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/lock.rb', line 16

    def j_del
      @j_del
    end

### - (`Object`) release

Raises:

- (`ArgumentError`)

    21
    22
    23
    24
    25
    26
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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