public enum SpanLayer extends Enum<SpanLayer>
| Enum Constant and Description |
|---|
CACHE |
DB |
HTTP |
MQ |
RPC_FRAMEWORK |
| Modifier and Type | Method and Description |
|---|---|
static void |
asCache(AbstractSpan span) |
static void |
asDB(AbstractSpan span) |
static void |
asHttp(AbstractSpan span) |
static void |
asMQ(AbstractSpan span) |
static void |
asRPCFramework(AbstractSpan span) |
int |
getCode() |
static SpanLayer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpanLayer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpanLayer DB
public static final SpanLayer RPC_FRAMEWORK
public static final SpanLayer HTTP
public static final SpanLayer MQ
public static final SpanLayer CACHE
public static SpanLayer[] values()
for (SpanLayer c : SpanLayer.values()) System.out.println(c);
public static SpanLayer valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static void asDB(AbstractSpan span)
public static void asCache(AbstractSpan span)
public static void asRPCFramework(AbstractSpan span)
public static void asHttp(AbstractSpan span)
public static void asMQ(AbstractSpan span)
Copyright © 2019 The Apache Software Foundation. All rights reserved.