handle

public abstract void handle(MetadataKey<T> key, Iterator<T> values, C context)

Handles all repeated metadata values for a given key.

Parameters

key

the repeatable metadata key for which this handler was registered, or an unknown key if this is the default handler.

values

a lightweight iterator over all values associated with the key. Note that this instance is read-only and must not be held beyond the scope of this callback.

context

an arbitrary context object supplied to the process method.