Interface OutputChannel

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
HttpExchangeBase

public interface OutputChannel extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    writeAsync(io.netty.buffer.ByteBuf data, boolean last, IoCallback<T> callback, T context)
     
    default void
    Writes the given UTF-8 data and ends the exchange
    default void
    writeAsync(String data, Charset charset)
    Writes the given data in the provided charset and ends the exchange
    default <T> void
    writeAsync(String data, Charset charset, boolean last, IoCallback<T> callback, T context)
    Writes the given data in the provided charset and invokes the provided callback on completion
    void
    writeBlocking(io.netty.buffer.ByteBuf data, boolean last)
     

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • writeAsync

      default void writeAsync(String data)
      Writes the given UTF-8 data and ends the exchange
      Parameters:
      data - The data to write
    • writeAsync

      default void writeAsync(String data, Charset charset)
      Writes the given data in the provided charset and ends the exchange
      Parameters:
      data - The data to write
    • writeAsync

      default <T> void writeAsync(String data, Charset charset, boolean last, IoCallback<T> callback, T context)
      Writes the given data in the provided charset and invokes the provided callback on completion
      Parameters:
      data - The data to write
    • writeAsync

      <T> void writeAsync(io.netty.buffer.ByteBuf data, boolean last, IoCallback<T> callback, T context)
    • writeBlocking

      void writeBlocking(io.netty.buffer.ByteBuf data, boolean last) throws IOException
      Parameters:
      data -
      last -
      Throws:
      IOException