Interface StreamCallback<T>

Type Parameters:
T - The type of the input parameter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated @FunctionalInterface public interface StreamCallback<T>
Deprecated.
Since 1.3.1, IOExceptions can no longer be thrown from callbacks in HTTP/2 stream implementations
A functional interface similar to a Consumer, except that the functional method may throw an IOException.
Since:
1.2.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
    Deprecated.
    The callback method.
  • Method Details

    • accept

      void accept(T t) throws IOException
      Deprecated.
      The callback method.
      Parameters:
      t - The input parameter
      Throws:
      IOException - If an IO error occurs