Package io.netty.handler.codec.quic
Class QuicStreamChannelBootstrap
- java.lang.Object
-
- io.netty.handler.codec.quic.QuicStreamChannelBootstrap
-
public final class QuicStreamChannelBootstrap extends java.lang.Object
Allows to bootstrap outgoingQuicStreamChannel
s.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> QuicStreamChannelBootstrap
attr(AttributeKey<T> key, T value)
Allow to specify an initial attribute of the newly createdQuicStreamChannel
.Future<QuicStreamChannel>
create()
Creates a newQuicStreamChannel
and notifies theFuture
.Future<QuicStreamChannel>
create(Promise<QuicStreamChannel> promise)
Creates a newQuicStreamChannel
and notifies theFuture
.QuicStreamChannelBootstrap
handler(ChannelHandler streamHandler)
<T> QuicStreamChannelBootstrap
option(ChannelOption<T> option, T value)
Allow to specify aChannelOption
which is used for theQuicStreamChannel
instances once they got created.QuicStreamChannelBootstrap
type(QuicStreamType type)
-
-
-
Method Detail
-
option
public <T> QuicStreamChannelBootstrap option(ChannelOption<T> option, @Nullable T value)
Allow to specify aChannelOption
which is used for theQuicStreamChannel
instances once they got created. Use a value ofnull
to remove a previous setChannelOption
.- Type Parameters:
T
- the type of the value.- Parameters:
option
- theChannelOption
to apply to theQuicStreamChannel
.value
- the value of the option.- Returns:
- this instance.
-
attr
public <T> QuicStreamChannelBootstrap attr(AttributeKey<T> key, @Nullable T value)
Allow to specify an initial attribute of the newly createdQuicStreamChannel
. If thevalue
isnull
, the attribute of the specifiedkey
is removed.- Type Parameters:
T
- the type of the value.- Parameters:
key
- theAttributeKey
to apply to theQuicChannel
.value
- the value of the attribute.- Returns:
- this instance.
-
handler
public QuicStreamChannelBootstrap handler(ChannelHandler streamHandler)
- Parameters:
streamHandler
- theChannelHandler
that is added to theQuicStreamChannel
sChannelPipeline
.- Returns:
- this instance.
-
type
public QuicStreamChannelBootstrap type(QuicStreamType type)
- Parameters:
type
- theQuicStreamType
of theQuicStreamChannel
.- Returns:
- this instance.
-
create
public Future<QuicStreamChannel> create()
Creates a newQuicStreamChannel
and notifies theFuture
.- Returns:
- the
Future
that is notified once the operation completes.
-
create
public Future<QuicStreamChannel> create(Promise<QuicStreamChannel> promise)
Creates a newQuicStreamChannel
and notifies theFuture
.
-
-