public class MetricsOptions extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_METRICS_ENABLED
The default value of metrics enabled false
|
Constructor and Description |
---|
MetricsOptions()
Default constructor
|
MetricsOptions(JsonObject json)
Create an instance from a
JsonObject |
MetricsOptions(MetricsOptions other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled()
Will metrics be enabled on the Vert.x instance?
|
MetricsOptions |
setEnabled(boolean enable)
Set whether metrics will be enabled on the Vert.x instance.
|
JsonObject |
toJson() |
public static final boolean DEFAULT_METRICS_ENABLED
public MetricsOptions()
public MetricsOptions(MetricsOptions other)
other
- The other MetricsOptions
to copy when creating thispublic MetricsOptions(JsonObject json)
JsonObject
json
- the JsonObject to create it frompublic boolean isEnabled()
public MetricsOptions setEnabled(boolean enable)
enable
- true if metrics enabled, or false if not.public JsonObject toJson()
Copyright © 2015. All Rights Reserved.