public interface QuicStreamChannel
extends io.netty.channel.socket.DuplexChannel
| Modifier and Type | Field and Description |
|---|---|
static io.netty.channel.ChannelFutureListener |
SHUTDOWN_OUTPUT
Should be added to a
ChannelFuture when the output should be cleanly shutdown via a FIN. |
| Modifier and Type | Method and Description |
|---|---|
default io.netty.channel.ChannelFuture |
bind(java.net.SocketAddress socketAddress) |
default io.netty.channel.ChannelFuture |
bind(java.net.SocketAddress localAddress,
io.netty.channel.ChannelPromise channelPromise) |
default io.netty.channel.ChannelFuture |
close() |
default io.netty.channel.ChannelFuture |
close(io.netty.channel.ChannelPromise channelPromise) |
QuicStreamChannelConfig |
config() |
default io.netty.channel.ChannelFuture |
connect(java.net.SocketAddress remoteAddress) |
default io.netty.channel.ChannelFuture |
connect(java.net.SocketAddress remoteAddress,
io.netty.channel.ChannelPromise channelPromise) |
default io.netty.channel.ChannelFuture |
connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress) |
default io.netty.channel.ChannelFuture |
connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
io.netty.channel.ChannelPromise channelPromise) |
default io.netty.channel.ChannelFuture |
deregister() |
default io.netty.channel.ChannelFuture |
deregister(io.netty.channel.ChannelPromise channelPromise) |
default io.netty.channel.ChannelFuture |
disconnect() |
default io.netty.channel.ChannelFuture |
disconnect(io.netty.channel.ChannelPromise channelPromise) |
QuicStreamChannel |
flush() |
boolean |
isLocalCreated()
Returns
true if the stream was created locally. |
QuicStreamAddress |
localAddress() |
default io.netty.channel.ChannelFuture |
newFailedFuture(java.lang.Throwable cause) |
default io.netty.channel.ChannelProgressivePromise |
newProgressivePromise() |
default io.netty.channel.ChannelPromise |
newPromise() |
default io.netty.channel.ChannelFuture |
newSucceededFuture() |
QuicChannel |
parent() |
@Nullable QuicStreamPriority |
priority()
The
QuicStreamPriority if explicit set for the stream via updatePriority(QuicStreamPriority) or
updatePriority(QuicStreamPriority, ChannelPromise). |
QuicStreamChannel |
read() |
QuicStreamAddress |
remoteAddress() |
default io.netty.channel.ChannelFuture |
shutdown() |
default io.netty.channel.ChannelFuture |
shutdown(int error)
Shortcut for calling
shutdownInput(int) and shutdownInput(int). |
io.netty.channel.ChannelFuture |
shutdown(int error,
io.netty.channel.ChannelPromise promise)
Shortcut for calling
shutdownInput(int, ChannelPromise) and shutdownInput(int, ChannelPromise). |
default io.netty.channel.ChannelFuture |
shutdownInput() |
default io.netty.channel.ChannelFuture |
shutdownInput(io.netty.channel.ChannelPromise promise) |
default io.netty.channel.ChannelFuture |
shutdownInput(int error)
Shutdown the input of the stream with the given error code.
|
io.netty.channel.ChannelFuture |
shutdownInput(int error,
io.netty.channel.ChannelPromise promise)
Shutdown the input of the stream with the given error code.
|
default io.netty.channel.ChannelFuture |
shutdownOutput() |
default io.netty.channel.ChannelFuture |
shutdownOutput(int error)
Shutdown the output of the stream with the given error code.
|
io.netty.channel.ChannelFuture |
shutdownOutput(int error,
io.netty.channel.ChannelPromise promise)
Shutdown the output of the stream with the given error code.
|
long |
streamId()
The id of the stream.
|
QuicStreamType |
type()
Returns the
QuicStreamType of the stream. |
default io.netty.channel.ChannelFuture |
updatePriority(QuicStreamPriority priority)
Update the priority of the stream.
|
io.netty.channel.ChannelFuture |
updatePriority(QuicStreamPriority priority,
io.netty.channel.ChannelPromise promise)
Update the priority of the stream.
|
default io.netty.channel.ChannelPromise |
voidPromise() |
default io.netty.channel.ChannelFuture |
write(java.lang.Object msg) |
default io.netty.channel.ChannelFuture |
write(java.lang.Object msg,
io.netty.channel.ChannelPromise channelPromise) |
default io.netty.channel.ChannelFuture |
writeAndFlush(java.lang.Object msg) |
default io.netty.channel.ChannelFuture |
writeAndFlush(java.lang.Object msg,
io.netty.channel.ChannelPromise channelPromise) |
isInputShutdown, isOutputShutdown, isShutdown, shutdown, shutdownOutputstatic final io.netty.channel.ChannelFutureListener SHUTDOWN_OUTPUT
ChannelFuture when the output should be cleanly shutdown via a FIN. No more
writes will be allowed after this point.default io.netty.channel.ChannelFuture bind(java.net.SocketAddress socketAddress)
bind in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress)
connect in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
connect in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture disconnect()
disconnect in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture close()
close in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture deregister()
deregister in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture bind(java.net.SocketAddress localAddress,
io.netty.channel.ChannelPromise channelPromise)
bind in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress,
io.netty.channel.ChannelPromise channelPromise)
connect in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
io.netty.channel.ChannelPromise channelPromise)
connect in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise channelPromise)
disconnect in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise channelPromise)
close in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise channelPromise)
deregister in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture write(java.lang.Object msg)
write in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture write(java.lang.Object msg,
io.netty.channel.ChannelPromise channelPromise)
write in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture writeAndFlush(java.lang.Object msg,
io.netty.channel.ChannelPromise channelPromise)
writeAndFlush in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture writeAndFlush(java.lang.Object msg)
writeAndFlush in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelPromise newPromise()
newPromise in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelProgressivePromise newProgressivePromise()
newProgressivePromise in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture newSucceededFuture()
newSucceededFuture in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture newFailedFuture(java.lang.Throwable cause)
newFailedFuture in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelPromise voidPromise()
voidPromise in interface io.netty.channel.ChannelOutboundInvokerdefault io.netty.channel.ChannelFuture shutdownInput()
shutdownInput in interface io.netty.channel.socket.DuplexChanneldefault io.netty.channel.ChannelFuture shutdownInput(io.netty.channel.ChannelPromise promise)
shutdownInput in interface io.netty.channel.socket.DuplexChanneldefault io.netty.channel.ChannelFuture shutdownOutput()
shutdownOutput in interface io.netty.channel.socket.DuplexChanneldefault io.netty.channel.ChannelFuture shutdown()
shutdown in interface io.netty.channel.socket.DuplexChanneldefault io.netty.channel.ChannelFuture shutdown(int error)
shutdownInput(int) and shutdownInput(int).error - the error to send.io.netty.channel.ChannelFuture shutdown(int error,
io.netty.channel.ChannelPromise promise)
shutdownInput(int, ChannelPromise) and shutdownInput(int, ChannelPromise).error - the error to send.promise - will be notified on completion.default io.netty.channel.ChannelFuture shutdownInput(int error)
STOP_SENDING frame will
be send to the remote peer and all data received will be discarded.error - the error to send as part of the STOP_SENDING frame.io.netty.channel.ChannelFuture shutdownInput(int error,
io.netty.channel.ChannelPromise promise)
STOP_SENDING frame will
be send to the remote peer and all data received will be discarded.error - the error to send as part of the STOP_SENDING frame.promise - will be notified on completion.default io.netty.channel.ChannelFuture shutdownOutput(int error)
RESET_STREAM frame will
be send to the remote peer and all data that is not sent yet will be discarded.
Important:If you want to shutdown the output without sending a RESET_STREAM frame you
should use shutdownOutput() which will shutdown the output by sending a FIN and so signal
a clean shutdown.error - the error to send as part of the RESET_STREAM frame.io.netty.channel.ChannelFuture shutdownOutput(int error,
io.netty.channel.ChannelPromise promise)
RESET_STREAM frame will
be send to the remote peer and all data that is not sent yet will be discarded.
Important:If you want to shutdown the output without sending a RESET_STREAM frame you
should use DuplexChannel.shutdownOutput(ChannelPromise) which will shutdown the output by sending a FIN
and so signal a clean shutdown.error - the error to send as part of the RESET_STREAM frame.promise - will be notified on completion.QuicStreamAddress localAddress()
localAddress in interface io.netty.channel.ChannelQuicStreamAddress remoteAddress()
remoteAddress in interface io.netty.channel.Channelboolean isLocalCreated()
true if the stream was created locally.true if created locally, false otherwise.QuicStreamType type()
QuicStreamType of the stream.QuicStreamType of this stream.long streamId()
QuicStreamChannel.@Nullable @Nullable QuicStreamPriority priority()
QuicStreamPriority if explicit set for the stream via updatePriority(QuicStreamPriority) or
updatePriority(QuicStreamPriority, ChannelPromise). Otherwise null.default io.netty.channel.ChannelFuture updatePriority(QuicStreamPriority priority)
priority - the priority.io.netty.channel.ChannelFuture updatePriority(QuicStreamPriority priority, io.netty.channel.ChannelPromise promise)
priority - the priority.promise - notified once operations completes.QuicChannel parent()
parent in interface io.netty.channel.ChannelQuicStreamChannel read()
read in interface io.netty.channel.Channelread in interface io.netty.channel.ChannelOutboundInvokerQuicStreamChannel flush()
flush in interface io.netty.channel.Channelflush in interface io.netty.channel.ChannelOutboundInvokerQuicStreamChannelConfig config()
config in interface io.netty.channel.ChannelCopyright © 2020-2025 The Netty Project. All Rights Reserved.