public class DefaultTransitLayer
extends java.lang.Object
Loads the TransitLayerFactory specified by baggage.transit using reflection.
| Modifier and Type | Method and Description |
|---|---|
static TransitLayer |
get() |
public static TransitLayer get()
TransitLayer instance. The default transit layer can be set using
-Dbaggage.transit. If no instance has been configured, this method will return a
ThreadLocalTransitLayer that uses simple thread-local storage to store baggage contexts.