Class: VertxMqtt::MqttUnsubscribeMessage
- Inherits:
-
Object
- Object
- VertxMqtt::MqttUnsubscribeMessage
show all
- Includes:
- MqttMessage
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb
Overview
Represents an MQTT UNSUBSCRIBE message
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
Class Method Details
+ (Boolean) accept?(obj)
20
21
22
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 20
def @@j_api_type.accept?(obj)
obj.class == MqttUnsubscribeMessage
end
|
+ (Object) j_api_type
29
30
31
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 29
def self.j_api_type
@@j_api_type
end
|
+ (Object) j_class
32
33
34
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 32
def self.j_class
Java::IoVertxMqttMessages::MqttUnsubscribeMessage.java_class
end
|
+ (Object) unwrap(obj)
26
27
28
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 26
def @@j_api_type.unwrap(obj)
obj.j_del
end
|
+ (Object) wrap(obj)
23
24
25
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 23
def @@j_api_type.wrap(obj)
MqttUnsubscribeMessage.new(obj)
end
|
Instance Method Details
- (Fixnum) messageId
Returns Message identifier
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 52
def message_id
if !block_given?
if @cached_message_id != nil
return @cached_message_id
end
return @cached_message_id = @j_del.java_method(:messageId, []).call()
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling message_id()"
end
end
|
- (Array<String>) topics
Returns List of topics to unsubscribe
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-mqtt/mqtt_unsubscribe_message.rb', line 37
def topics
if !block_given?
if @cached_topics != nil
return @cached_topics
end
return @cached_topics = @j_del.java_method(:topics, []).call().to_a.map { |elt| elt }
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling topics()"
end
end
|