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

## Overview

Encapsulates a message being sent from Vert.x. Used with event bus interceptors

## Instance Method Summary (collapse)

- - (::Vertx::Message) message
  @return The message being sent.
- - (void) next
  Call the next interceptor.
- - (true, false) send?
  True if the message is being sent (point to point) or False if the message is being published.

## Instance Method Details

### - (`::Vertx::Message`) message

@return The message being sent

Returns:

- (`::Vertx::Message`)

Raises:

- (`ArgumentError`)

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

    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

### - (`void`) next

This method returns an undefined value.

Call the next interceptor

Raises:

- (`ArgumentError`)

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

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

### - (`true`, `false`) send?

Returns true if the message is being sent (point to point) or False if the message is being published

Returns:

- (`true`, `false`) —
  true if the message is being sent (point to point) or False if the message is being published

Raises:

- (`ArgumentError`)

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

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