@Immutable public class EmptyCorrelationContext extends Object implements CorrelationContext
CorrelationContext that does not contain any entries.CorrelationContext.Builder| 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. |
static CorrelationContext |
getInstance()
Returns the single instance of the
EmptyCorrelationContext class. |
public static CorrelationContext getInstance()
EmptyCorrelationContext class.EmptyCorrelationContext class.public Collection<Entry> getEntries()
CorrelationContextCorrelationContext. Order of
entries is not guaranteed.getEntries in interface CorrelationContextCorrelationContext.@Nullable public EntryValue getEntryValue(EntryKey entryKey)
CorrelationContextEntryValue associated with the given EntryKey.getEntryValue in interface CorrelationContextentryKey - 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.