Interface AsyncDataProducer

    • Method Detail

      • available

        int available()
        Returns the number of bytes immediately available for output. This method can be used as a hint to control output events of the underlying I/O session.
        Returns:
        the number of bytes immediately available for output
      • produce

        void produce​(DataStreamChannel channel)
              throws java.io.IOException
        Triggered to signal the ability of the underlying data channel to accept more data. The data producer can choose to write data immediately inside the call or asynchronously at some later point.
        Parameters:
        channel - the data channel capable to accepting more data.
        Throws:
        java.io.IOException