Package reactor.netty.incubator.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, replaceHandler
Methods 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. AMono
completing when the stream is created, then the provided callback is invoked. If the stream creation is not successful the returnedMono
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. AMono
completing when the stream is created, then the provided callback is invoked. If the stream creation is not successful the returnedMono
fails.- Parameters:
streamType
- theQuicStreamType
streamHandler
- the I/O handler for the stream- Returns:
- a
Mono
completing when the stream is created, otherwise fails
-