Package jadex.bridge

Interface IOutputConnection

    • Method Detail

      • write

        IFuture<java.lang.Void> write​(byte[] data)
        Write the content to the stream.
        Parameters:
        data - The data.
      • flush

        void flush()
        Flush the data.
      • waitForReady

        IFuture<java.lang.Integer> waitForReady()
        Wait until the connection is ready for the next write.
        Returns:
        Calls future when next data can be written. Provides a value of how much data should be given to the connection for best performance.
      • writeFromInputStream

        ISubscriptionIntermediateFuture<java.lang.Long> writeFromInputStream​(java.io.InputStream is,
                                                                             IExternalAccess component)
        Write all data from input stream to the connection. The result is an intermediate future that reports back the size that was written. It can also be used to terminate sending.
        Parameters:
        is - The input stream.