Class QuicStreamChannelBootstrap
java.lang.Object
io.netty.handler.codec.quic.QuicStreamChannelBootstrap
Allows to bootstrap outgoing
QuicStreamChannels.-
Method Summary
Modifier and TypeMethodDescriptionattr(AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly createdQuicStreamChannel.create()Creates a newQuicStreamChanneland notifies theFuture.create(Promise<QuicStreamChannel> promise) Creates a newQuicStreamChanneland notifies theFuture.handler(ChannelHandler streamHandler) option(ChannelOption<T> option, T value) Allow to specify aChannelOptionwhich is used for theQuicStreamChannelinstances once they got created.type(QuicStreamType type)
-
Method Details
-
option
Allow to specify aChannelOptionwhich is used for theQuicStreamChannelinstances once they got created. Use a value ofnullto remove a previous setChannelOption.- Type Parameters:
T- the type of the value.- Parameters:
option- theChannelOptionto apply to theQuicStreamChannel.value- the value of the option.- Returns:
- this instance.
-
attr
Allow to specify an initial attribute of the newly createdQuicStreamChannel. If thevalueisnull, the attribute of the specifiedkeyis removed.- Type Parameters:
T- the type of the value.- Parameters:
key- theAttributeKeyto apply to theQuicChannel.value- the value of the attribute.- Returns:
- this instance.
-
handler
- Parameters:
streamHandler- theChannelHandlerthat is added to theQuicStreamChannelsChannelPipeline.- Returns:
- this instance.
-
type
- Parameters:
type- theQuicStreamTypeof theQuicStreamChannel.- Returns:
- this instance.
-
create
Creates a newQuicStreamChanneland notifies theFuture.- Returns:
- the
Futurethat is notified once the operation completes.
-
create
Creates a newQuicStreamChanneland notifies theFuture.
-