Interface ProxyDataConsumer<T>

Type Parameters:
T - the stream type
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 ProxyDataConsumer<T>
Writes extra data into a proxy message. Separate from Consumer because writing to a stream can fail.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
    Writes the data.
  • Method Details

    • accept

      void accept(T t) throws IOException
      Writes the data.
      Parameters:
      t - the stream to write to
      Throws:
      IOException - if writing fails