Class: Vertx::DeliveryContext
- Inherits:
-
Object
- Object
- Vertx::DeliveryContext
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/delivery_context.rb
Overview
Encapsulates a message being delivered by Vert.x as well as providing control over the message delivery.
Used with event bus interceptors.
Instance Method Summary (collapse)
-
- (Object) body
The value delivered by the message (before or after being processed by the codec).
-
- (::Vertx::Message) message
The message being delivered.
-
- (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
- (Object) body
Returns the value delivered by the message (before or after being processed by the codec)
37 38 39 40 41 42 43 44 45 46 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/delivery_context.rb', line 37 def body if !block_given? return ::Vertx::Util::Utils.from_object(@j_del.java_method(:body, []).call()) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling body()" end end |
- (::Vertx::Message) message
Returns The message being delivered
49 50 51 52 53 54 55 56 57 58 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/delivery_context.rb', line 49 def if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:message, []).call(),::Vertx::Message, nil) end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling message()" end end |
- (void) next
This method returns an undefined value.
Call the next interceptor
25 26 27 28 29 30 31 32 33 34 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/delivery_context.rb', line 25 def next if !block_given? return @j_del.java_method(:next, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling next()" end end |
- (true, false) send
Returns true if the message is being sent (point to point) or False if the message is being published
61 62 63 64 65 66 67 68 69 70 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/delivery_context.rb', line 61 def send? if !block_given? return @j_del.java_method(:send, []).call() end if defined?(super) super else raise ArgumentError, "Invalid arguments when calling send?()" end end |