Interface QuicConnection

All Superinterfaces:
Connection, Disposable, DisposableChannel

public interface QuicConnection extends Connection
API for creating and handling streams.
Author:
Violeta Georgieva
  • Method Details

    • createStream

      default Mono<Void> createStream(BiFunction<? super QuicInbound,? super QuicOutbound,? extends Publisher<Void>> streamHandler)
      Creates a bidirectional stream. A Mono completing when the stream is created, then the provided callback is invoked. If the stream creation is not successful the returned Mono fails.
      Parameters:
      streamHandler - the I/O handler for the stream
      Returns:
      a Mono completing when the stream is created, otherwise fails
    • createStream

      Mono<Void> createStream(QuicStreamType streamType, BiFunction<? super QuicInbound,? super QuicOutbound,? extends Publisher<Void>> streamHandler)
      Creates a stream. A Mono completing when the stream is created, then the provided callback is invoked. If the stream creation is not successful the returned Mono fails.
      Parameters:
      streamType - the QuicStreamType
      streamHandler - the I/O handler for the stream
      Returns:
      a Mono completing when the stream is created, otherwise fails