Module: VertxMqttServer::MqttMessage

Included in:
MqttMessageImpl, MqttPublishMessage, MqttSubAckMessage, MqttSubscribeMessage, MqttUnsubscribeMessage
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mqtt-server/mqtt_message.rb

Instance Method Summary (collapse)

Instance Method Details

- (Fixnum) message_id

Returns Message identifier

Returns:

  • (Fixnum)
    Message identifier

Raises:

  • (ArgumentError)


6
7
8
9
10
11
12
13
14
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-mqtt-server/mqtt_message.rb', line 6

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
  raise ArgumentError, "Invalid arguments when calling message_id()"
end