public class TracingOptions extends Object
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.
|
TracingOptions |
setFactory(VertxTracerFactory factory)
Programmatically set the tracer factory to be used when tracing are enabled.
|
JsonObject |
toJson() |
String |
toString() |
public TracingOptions()
public TracingOptions(TracingOptions other)
other
- The other TracingOptions
to copy when creating thispublic TracingOptions(JsonObject json)
JsonObject
json
- the JsonObject to create it frompublic 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)
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 © 2022 Eclipse. All rights reserved.