public class TracingOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_TRACING_ENABLED
The default value of tracing enabled false
|
| Constructor and Description |
|---|
TracingOptions()
Default constructor
|
TracingOptions(JsonObject json)
Create an instance from a
JsonObject |
TracingOptions(TracingOptions other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
TracingOptions |
copy() |
VertxTracerFactory |
getFactory()
Get the tracer factory to be used when tracing are enabled.
|
boolean |
isEnabled()
Will tracing be enabled on the Vert.x instance?
|
TracingOptions |
setEnabled(boolean enable)
Set whether tracing will be enabled on the Vert.x instance.
|
TracingOptions |
setFactory(VertxTracerFactory factory)
Programmatically set the tracer factory to be used when tracing are enabled.
|
JsonObject |
toJson() |
String |
toString() |
public static final boolean DEFAULT_TRACING_ENABLED
public TracingOptions()
public TracingOptions(TracingOptions other)
other - The other TracingOptions to copy when creating thispublic TracingOptions(JsonObject json)
JsonObjectjson - the JsonObject to create it frompublic boolean isEnabled()
public TracingOptions setEnabled(boolean enable)
enable - true if tracing enabled, or false if not.public VertxTracerFactory getFactory()
If the tracer factory has been programmatically set here, then that will be used when tracing are enabled
for creating the VertxTracer instance.
Otherwise Vert.x attempts to locate a tracer factory implementation on the classpath.
public TracingOptions setFactory(VertxTracerFactory factory)
Only valid if isEnabled() = true.
Normally Vert.x will look on the classpath for a tracer factory implementation, but if you want to set one programmatically you can use this method.
factory - the tracer factorypublic TracingOptions copy()
public JsonObject toJson()
Copyright © 2019 Eclipse. All rights reserved.