@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. |
String |
getEntryValue(String entryKey)
Returns the
String associated with the given key. |
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 String getEntryValue(String entryKey)
CorrelationContextString associated with the given key.getEntryValue in interface CorrelationContextentryKey - entry key to return the value for.null if no Entry with the
given entryKey is in this CorrelationContext.