Module: Vertx::Measured

Included in:
DatagramSocket, EventBus, HttpClient, HttpServer, MeasuredImpl, NetClient, NetServer, Vertx, WorkerExecutor
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/measured.rb

Instance Method Summary (collapse)

Instance Method Details

- (true, false) metrics_enabled?

Whether the metrics are enabled for this measured object

Returns:

  • (true, false)
    true if the metrics are enabled

Raises:

  • (ArgumentError)


7
8
9
10
11
12
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/measured.rb', line 7

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