Class: VertxRabbitmq::Envelope

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb

Overview

Like Envelope.

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)

17
18
19
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 17

def @@j_api_type.accept?(obj)
  obj.class == Envelope
end

+ (Object) j_api_type


26
27
28
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 26

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class


29
30
31
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 29

def self.j_class
  Java::IoVertxRabbitmq::Envelope.java_class
end

+ (Object) unwrap(obj)


23
24
25
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 23

def @@j_api_type.unwrap(obj)
  obj.j_del
end

+ (Object) wrap(obj)


20
21
22
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 20

def @@j_api_type.wrap(obj)
  Envelope.new(obj)
end

Instance Method Details

- (Fixnum) delivery_tag

Get the delivery tag included in this parameter envelope

Returns:

  • (Fixnum)
    the delivery tag

Raises:

  • (ArgumentError)

34
35
36
37
38
39
40
41
42
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 34

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

- (String) exchange

Get the name of the exchange included in this parameter envelope

Returns:

  • (String)
    the exchange

Raises:

  • (ArgumentError)

59
60
61
62
63
64
65
66
67
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 59

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

- (true, false) redelivery?

Get the redelivery flag included in this parameter envelope. This is a hint as to whether this message may have been delivered before (but not acknowledged). If the flag is not set, the message definitely has not been delivered before. If it is set, it may have been delivered before.

Returns:

  • (true, false)
    the redelivery flag

Raises:

  • (ArgumentError)

48
49
50
51
52
53
54
55
56
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 48

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

- (String) routing_key

Get the routing key included in this parameter envelope

Returns:

  • (String)
    the routing key

Raises:

  • (ArgumentError)

70
71
72
73
74
75
76
77
78
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-rabbitmq/envelope.rb', line 70

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