handleRepeated

protected void handleRepeated<T>(MetadataKey<T> key, Iterator<T> values, C context)

Handles values for a repeatable metadata key. The method is called for all repeatable keys (even those with only one value). The default implementation makes repeated callbacks to the handle method, in order, for each value.

Parameters

key

the repeatable metadata key.

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.

<T>

the key/value type.