@Immutable public interface CorrelationContext
EntryKey to EntryValue and EntryMetadata that can be used to
label anything that is associated with a specific operation.
For example, CorrelationContexts can be used to label stats, log messages, or
debugging information.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CorrelationContext.Builder
Builder for the
CorrelationContext class. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Entry> |
getEntries()
Returns an immutable collection of the entries in this
CorrelationContext. |
EntryValue |
getEntryValue(EntryKey entryKey)
Returns the
EntryValue associated with the given EntryKey. |
Collection<Entry> getEntries()
CorrelationContext. Order of
entries is not guaranteed.CorrelationContext.@Nullable EntryValue getEntryValue(EntryKey entryKey)
EntryValue associated with the given EntryKey.entryKey - entry key to return the value for.EntryValue associated with the given EntryKey, or null if
no Entry with the given entryKey is in this CorrelationContext.