Class List Method List File List

# Class: Vertx::SendContext

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

## Instance Method Summary (collapse)

- - (SendContext) initialize(j_del) constructor
  A new instance of SendContext.
- - (Object) j_del
- - (Object) message
- - (Object) next
- - (Boolean) send?

## Constructor Details

### - (`SendContext`) initialize(j_del)

Returns a new instance of SendContext

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

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) j_del

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

    def j_del
      @j_del
    end

### - (`Object`) message

Raises:

- (`ArgumentError`)

    19
    20
    21
    22
    23
    24
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/send_context.rb', line 19

    def message
      if !block_given?
        return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:message, []).call(),::Vertx::Message)
      end
      raise ArgumentError, "Invalid arguments when calling message()"
    end

### - (`Object`) next

Raises:

- (`ArgumentError`)

    27
    28
    29
    30
    31
    32
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/send_context.rb', line 27

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

### - (`Boolean`) send?

Returns:

- (`Boolean`)

Raises:

- (`ArgumentError`)

    34
    35
    36
    37
    38
    39
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/send_context.rb', line 34

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