Interface MetadataHandler.RepeatedValueHandler<T,​C>

  • Type Parameters:
    T - the key/value type.
    C - the type of the context passed to the callbacks.
    Enclosing class:
    MetadataHandler<C>

    public static interface MetadataHandler.RepeatedValueHandler<T,​C>
    API for handling repeated metadata key/values in a single callback.
    • Method Detail

      • handle

        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.