public static enum EntryMetadata.EntryTtl extends java.lang.Enum<EntryMetadata.EntryTtl>
EntryMetadata.EntryTtl
is an integer that represents number of hops an entry can propagate.
Anytime a sender serializes a entry, sends it over the wire and receiver deserializes the entry then the entry 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 EntryMetadata.EntryTtl
are supported.
Enum Constant and Description |
---|
NO_PROPAGATION
An
Entry with NO_PROPAGATION is considered to have local scope and
is used within the process where it's created. |
UNLIMITED_PROPAGATION
An
Entry with UNLIMITED_PROPAGATION can propagate unlimited hops. |
Modifier and Type | Method and Description |
---|---|
static EntryMetadata.EntryTtl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntryMetadata.EntryTtl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntryMetadata.EntryTtl NO_PROPAGATION
Entry
with NO_PROPAGATION
is considered to have local scope and
is used within the process where it's created.public static final EntryMetadata.EntryTtl UNLIMITED_PROPAGATION
Entry
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 EntryMetadata.EntryTtl[] values()
for (EntryMetadata.EntryTtl c : EntryMetadata.EntryTtl.values()) System.out.println(c);
public static EntryMetadata.EntryTtl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null