Package reactor.netty.quic
Interface QuicConnection
- All Superinterfaces:
Connection,Disposable,DisposableChannel
API for creating and handling streams.
- Author:
- Violeta Georgieva
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.core.Disposable
Disposable.Composite, Disposable.Swap -
Method Summary
Modifier and TypeMethodDescriptioncreateStream(QuicStreamType streamType, BiFunction<? super QuicInbound, ? super QuicOutbound, ? extends Publisher<Void>> streamHandler) Creates a stream.createStream(BiFunction<? super QuicInbound, ? super QuicOutbound, ? extends Publisher<Void>> streamHandler) Creates a bidirectional stream.Methods inherited from interface reactor.netty.Connection
addHandler, addHandler, addHandlerFirst, addHandlerFirst, addHandlerLast, addHandlerLast, as, bind, inbound, isPersistent, markPersistent, onDispose, onReadIdle, onTerminate, onWriteIdle, outbound, rebind, removeHandler, replaceHandlerMethods inherited from interface reactor.netty.DisposableChannel
address, channel, dispose, disposeNow, disposeNow, disposeSubscriber, isDisposed, onDispose
-
Method Details
-
createStream
default Mono<Void> createStream(BiFunction<? super QuicInbound, ? super QuicOutbound, ? extends Publisher<Void>> streamHandler) Creates a bidirectional stream. AMonocompleting when the stream is created, then the provided callback is invoked. If the stream creation is not successful the returnedMonofails.- Parameters:
streamHandler- the I/O handler for the stream- Returns:
- a
Monocompleting 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. AMonocompleting when the stream is created, then the provided callback is invoked. If the stream creation is not successful the returnedMonofails.- Parameters:
streamType- theQuicStreamTypestreamHandler- the I/O handler for the stream- Returns:
- a
Monocompleting when the stream is created, otherwise fails
-