Interface NettyConnection<Read,​Write>

    • Method Detail

      • write

        Completable write​(Publisher<Write> write)
        Writes all elements emitted by the passed Publisher on this connection.
        Parameters:
        write - Publisher, all objects emitted from which are written on this connection.
        Returns:
        Completable that terminates as follows:
        • With an error, if any item emitted can not be written successfully on the connection.
        • With an error, if Publisher emits an error.
        • With an error, if there is a already an active write on this connection.
        • Successfully when Publisher completes and all items emitted are written successfully.
      • write

        Completable write​(Publisher<Write> write,
                          java.util.function.Supplier<FlushStrategy> flushStrategySupplier,
                          java.util.function.Supplier<WriteDemandEstimator> demandEstimatorSupplier)
        Writes all elements emitted by the passed Publisher on this connection.
        Parameters:
        write - Publisher, all objects emitted from which are written on this connection.
        flushStrategySupplier - Supplier of FlushStrategy which controls the flush operations for this write.
        demandEstimatorSupplier - A Supplier of WriteDemandEstimator for this write.
        Returns:
        Completable that terminates as follows:
        • With an error, if any item emitted can not be written successfully on the connection.
        • With an error, if Publisher emits an error.
        • With an error, if there is a already an active write on this connection.
        • Successfully when Publisher completes and all items emitted are written successfully.