Class NamedConsumer<T>

  • All Implemented Interfaces:
    org.apache.flink.util.function.ThrowingConsumer<T,​Exception>

    @Experimental
    public class NamedConsumer<T>
    extends NamedCallback
    implements org.apache.flink.util.function.ThrowingConsumer<T,​Exception>
    A named version of Consumer.
    • Constructor Detail

      • NamedConsumer

        public NamedConsumer​(String name,
                             org.apache.flink.util.function.ThrowingConsumer<? super T,​? extends Exception> consumer)
    • Method Detail

      • accept

        public void accept​(T t)
                    throws Exception
        Specified by:
        accept in interface org.apache.flink.util.function.ThrowingConsumer<T,​Exception>
        Throws:
        Exception