removeMetadata

protected final void removeMetadata(MetadataKey<? extends Object> key)

Removes all key/value pairs with the specified key. Note that this method does not resize any underlying backing arrays or other storage as logging contexts are expected to be short lived.

Parameters

key

the metadata key (see LogData).