Interface StreamConsumer<T,​X extends java.lang.Exception>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface StreamConsumer<T,​X extends java.lang.Exception>
    • Method Detail

      • useStream

        void useStream​(java.util.stream.Stream<T> stream)
                throws X extends java.lang.Exception
        Will be invoked with result stream. The stream will be closed when this callback returns.
        Parameters:
        stream - stream to be used only within scope of this callback
        Throws:
        X - optional exception thrown by the callback
        X extends java.lang.Exception