Package io.netty.handler.codec.quic
Class QuicStreamChannelBootstrap
- java.lang.Object
-
- io.netty.handler.codec.quic.QuicStreamChannelBootstrap
-
public final class QuicStreamChannelBootstrap extends java.lang.ObjectAllows to bootstrap outgoingQuicStreamChannels.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> QuicStreamChannelBootstrapattr(AttributeKey<T> key, T value)Allow to specify an initial attribute of the newly createdQuicStreamChannel.Future<QuicStreamChannel>create()Creates a newQuicStreamChanneland notifies theFuture.Future<QuicStreamChannel>create(Promise<QuicStreamChannel> promise)Creates a newQuicStreamChanneland notifies theFuture.QuicStreamChannelBootstraphandler(ChannelHandler streamHandler)<T> QuicStreamChannelBootstrapoption(ChannelOption<T> option, T value)Allow to specify aChannelOptionwhich is used for theQuicStreamChannelinstances once they got created.QuicStreamChannelBootstraptype(QuicStreamType type)
-
-
-
Method Detail
-
option
public <T> QuicStreamChannelBootstrap option(ChannelOption<T> option, @Nullable T value)
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
public <T> QuicStreamChannelBootstrap attr(AttributeKey<T> key, @Nullable T value)
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
public QuicStreamChannelBootstrap handler(ChannelHandler streamHandler)
- Parameters:
streamHandler- theChannelHandlerthat is added to theQuicStreamChannelsChannelPipeline.- Returns:
- this instance.
-
type
public QuicStreamChannelBootstrap type(QuicStreamType type)
- Parameters:
type- theQuicStreamTypeof theQuicStreamChannel.- Returns:
- this instance.
-
create
public Future<QuicStreamChannel> create()
Creates a newQuicStreamChanneland notifies theFuture.- Returns:
- the
Futurethat is notified once the operation completes.
-
create
public Future<QuicStreamChannel> create(Promise<QuicStreamChannel> promise)
Creates a newQuicStreamChanneland notifies theFuture.
-
-