public static enum TagMetadata.TagTtl extends Enum<TagMetadata.TagTtl>
TagMetadata.TagTtl
is an integer that represents number of hops a tag can propagate.
Anytime a sender serializes a tag, sends it over the wire and receiver deserializes the tag then the tag is considered to have travelled one hop.
There could be one or more proxy(ies) between sender and receiver. Proxies are treated as transparent entities and they are not counted as hops.
For now, only special values of TagMetadata.TagTtl
are supported.
Enum Constant and Description |
---|
NO_PROPAGATION
A
Tag with NO_PROPAGATION is considered to have local scope and is
used within the process where it's created. |
UNLIMITED_PROPAGATION
A
Tag with UNLIMITED_PROPAGATION can propagate unlimited hops. |
Modifier and Type | Method and Description |
---|---|
static TagMetadata.TagTtl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TagMetadata.TagTtl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TagMetadata.TagTtl NO_PROPAGATION
Tag
with NO_PROPAGATION
is considered to have local scope and is
used within the process where it's created.public static final TagMetadata.TagTtl UNLIMITED_PROPAGATION
Tag
with UNLIMITED_PROPAGATION
can propagate unlimited hops.
However, it is still subject to outgoing and incoming (on remote side) filter criteria.
UNLIMITED_PROPAGATION
is typical used to track a request, which may be
processed across multiple entities.
public static TagMetadata.TagTtl[] values()
for (TagMetadata.TagTtl c : TagMetadata.TagTtl.values()) System.out.println(c);
public static TagMetadata.TagTtl 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 null