Package io.netty.handler.codec.quic
Interface QuicStreamChannel
-
- All Superinterfaces:
io.netty.util.AttributeMap,io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,Comparable<io.netty.channel.Channel>,io.netty.channel.socket.DuplexChannel
public interface QuicStreamChannel extends io.netty.channel.socket.DuplexChannelA QUIC stream.
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.channel.ChannelFutureListenerSHUTDOWN_OUTPUTShould be added to aChannelFuturewhen the output should be cleanly shutdown via aFIN.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default io.netty.channel.ChannelFuturebind(SocketAddress socketAddress)default io.netty.channel.ChannelFuturebind(SocketAddress localAddress, io.netty.channel.ChannelPromise channelPromise)default io.netty.channel.ChannelFutureclose()default io.netty.channel.ChannelFutureclose(io.netty.channel.ChannelPromise channelPromise)QuicStreamChannelConfigconfig()default io.netty.channel.ChannelFutureconnect(SocketAddress remoteAddress)default io.netty.channel.ChannelFutureconnect(SocketAddress remoteAddress, io.netty.channel.ChannelPromise channelPromise)default io.netty.channel.ChannelFutureconnect(SocketAddress remoteAddress, SocketAddress localAddress)default io.netty.channel.ChannelFutureconnect(SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise channelPromise)default io.netty.channel.ChannelFuturederegister()default io.netty.channel.ChannelFuturederegister(io.netty.channel.ChannelPromise channelPromise)default io.netty.channel.ChannelFuturedisconnect()default io.netty.channel.ChannelFuturedisconnect(io.netty.channel.ChannelPromise channelPromise)QuicStreamChannelflush()booleanisLocalCreated()Returnstrueif the stream was created locally.QuicStreamAddresslocalAddress()default io.netty.channel.ChannelFuturenewFailedFuture(Throwable cause)default io.netty.channel.ChannelProgressivePromisenewProgressivePromise()default io.netty.channel.ChannelPromisenewPromise()default io.netty.channel.ChannelFuturenewSucceededFuture()QuicChannelparent()@Nullable QuicStreamPrioritypriority()TheQuicStreamPriorityif explicit set for the stream viaupdatePriority(QuicStreamPriority)orupdatePriority(QuicStreamPriority, ChannelPromise).QuicStreamChannelread()QuicStreamAddressremoteAddress()default io.netty.channel.ChannelFutureshutdown()default io.netty.channel.ChannelFutureshutdown(int error)Shortcut for callingshutdownInput(int)andshutdownInput(int).io.netty.channel.ChannelFutureshutdown(int error, io.netty.channel.ChannelPromise promise)Shortcut for callingshutdownInput(int, ChannelPromise)andshutdownInput(int, ChannelPromise).default io.netty.channel.ChannelFutureshutdownInput()default io.netty.channel.ChannelFutureshutdownInput(int error)Shutdown the input of the stream with the given error code.io.netty.channel.ChannelFutureshutdownInput(int error, io.netty.channel.ChannelPromise promise)Shutdown the input of the stream with the given error code.default io.netty.channel.ChannelFutureshutdownInput(io.netty.channel.ChannelPromise promise)default io.netty.channel.ChannelFutureshutdownOutput()default io.netty.channel.ChannelFutureshutdownOutput(int error)Shutdown the output of the stream with the given error code.io.netty.channel.ChannelFutureshutdownOutput(int error, io.netty.channel.ChannelPromise promise)Shutdown the output of the stream with the given error code.longstreamId()The id of the stream.QuicStreamTypetype()Returns theQuicStreamTypeof the stream.default io.netty.channel.ChannelFutureupdatePriority(QuicStreamPriority priority)Update the priority of the stream.io.netty.channel.ChannelFutureupdatePriority(QuicStreamPriority priority, io.netty.channel.ChannelPromise promise)Update the priority of the stream.default io.netty.channel.ChannelPromisevoidPromise()default io.netty.channel.ChannelFuturewrite(Object msg)default io.netty.channel.ChannelFuturewrite(Object msg, io.netty.channel.ChannelPromise channelPromise)default io.netty.channel.ChannelFuturewriteAndFlush(Object msg)default io.netty.channel.ChannelFuturewriteAndFlush(Object msg, io.netty.channel.ChannelPromise channelPromise)-
Methods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, getOption, id, isActive, isOpen, isRegistered, isWritable, metadata, pipeline, setOption, unsafe
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
bind
default io.netty.channel.ChannelFuture bind(SocketAddress socketAddress)
- Specified by:
bindin interfaceio.netty.channel.Channel- Specified by:
bindin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
default io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress)
- Specified by:
connectin interfaceio.netty.channel.Channel- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
default io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress)
- Specified by:
connectin interfaceio.netty.channel.Channel- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
default io.netty.channel.ChannelFuture disconnect()
- Specified by:
disconnectin interfaceio.netty.channel.Channel- Specified by:
disconnectin interfaceio.netty.channel.ChannelOutboundInvoker
-
close
default io.netty.channel.ChannelFuture close()
- Specified by:
closein interfaceio.netty.channel.Channel- Specified by:
closein interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
default io.netty.channel.ChannelFuture deregister()
- Specified by:
deregisterin interfaceio.netty.channel.Channel- Specified by:
deregisterin interfaceio.netty.channel.ChannelOutboundInvoker
-
bind
default io.netty.channel.ChannelFuture bind(SocketAddress localAddress, io.netty.channel.ChannelPromise channelPromise)
- Specified by:
bindin interfaceio.netty.channel.Channel- Specified by:
bindin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
default io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, io.netty.channel.ChannelPromise channelPromise)
- Specified by:
connectin interfaceio.netty.channel.Channel- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
default io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise channelPromise)
- Specified by:
connectin interfaceio.netty.channel.Channel- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
default io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise channelPromise)
- Specified by:
disconnectin interfaceio.netty.channel.Channel- Specified by:
disconnectin interfaceio.netty.channel.ChannelOutboundInvoker
-
close
default io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise channelPromise)
- Specified by:
closein interfaceio.netty.channel.Channel- Specified by:
closein interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
default io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise channelPromise)
- Specified by:
deregisterin interfaceio.netty.channel.Channel- Specified by:
deregisterin interfaceio.netty.channel.ChannelOutboundInvoker
-
write
default io.netty.channel.ChannelFuture write(Object msg)
- Specified by:
writein interfaceio.netty.channel.Channel- Specified by:
writein interfaceio.netty.channel.ChannelOutboundInvoker
-
write
default io.netty.channel.ChannelFuture write(Object msg, io.netty.channel.ChannelPromise channelPromise)
- Specified by:
writein interfaceio.netty.channel.Channel- Specified by:
writein interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
default io.netty.channel.ChannelFuture writeAndFlush(Object msg, io.netty.channel.ChannelPromise channelPromise)
- Specified by:
writeAndFlushin interfaceio.netty.channel.Channel- Specified by:
writeAndFlushin interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
default io.netty.channel.ChannelFuture writeAndFlush(Object msg)
- Specified by:
writeAndFlushin interfaceio.netty.channel.Channel- Specified by:
writeAndFlushin interfaceio.netty.channel.ChannelOutboundInvoker
-
newPromise
default io.netty.channel.ChannelPromise newPromise()
- Specified by:
newPromisein interfaceio.netty.channel.Channel- Specified by:
newPromisein interfaceio.netty.channel.ChannelOutboundInvoker
-
newProgressivePromise
default io.netty.channel.ChannelProgressivePromise newProgressivePromise()
- Specified by:
newProgressivePromisein interfaceio.netty.channel.Channel- Specified by:
newProgressivePromisein interfaceio.netty.channel.ChannelOutboundInvoker
-
newSucceededFuture
default io.netty.channel.ChannelFuture newSucceededFuture()
- Specified by:
newSucceededFuturein interfaceio.netty.channel.Channel- Specified by:
newSucceededFuturein interfaceio.netty.channel.ChannelOutboundInvoker
-
newFailedFuture
default io.netty.channel.ChannelFuture newFailedFuture(Throwable cause)
- Specified by:
newFailedFuturein interfaceio.netty.channel.Channel- Specified by:
newFailedFuturein interfaceio.netty.channel.ChannelOutboundInvoker
-
voidPromise
default io.netty.channel.ChannelPromise voidPromise()
- Specified by:
voidPromisein interfaceio.netty.channel.Channel- Specified by:
voidPromisein interfaceio.netty.channel.ChannelOutboundInvoker
-
shutdownInput
default io.netty.channel.ChannelFuture shutdownInput()
- Specified by:
shutdownInputin interfaceio.netty.channel.socket.DuplexChannel
-
shutdownInput
default io.netty.channel.ChannelFuture shutdownInput(io.netty.channel.ChannelPromise promise)
- Specified by:
shutdownInputin interfaceio.netty.channel.socket.DuplexChannel
-
shutdownOutput
default io.netty.channel.ChannelFuture shutdownOutput()
- Specified by:
shutdownOutputin interfaceio.netty.channel.socket.DuplexChannel
-
shutdown
default io.netty.channel.ChannelFuture shutdown()
- Specified by:
shutdownin interfaceio.netty.channel.socket.DuplexChannel
-
shutdown
default io.netty.channel.ChannelFuture shutdown(int error)
Shortcut for callingshutdownInput(int)andshutdownInput(int).- Parameters:
error- the error to send.- Returns:
- the future that is notified on completion.
-
shutdown
io.netty.channel.ChannelFuture shutdown(int error, io.netty.channel.ChannelPromise promise)Shortcut for callingshutdownInput(int, ChannelPromise)andshutdownInput(int, ChannelPromise).- Parameters:
error- the error to send.promise- will be notified on completion.- Returns:
- the future that is notified on completion.
-
shutdownInput
default io.netty.channel.ChannelFuture shutdownInput(int error)
Shutdown the input of the stream with the given error code. This means aSTOP_SENDINGframe will be send to the remote peer and all data received will be discarded.- Parameters:
error- the error to send as part of theSTOP_SENDINGframe.- Returns:
- the future that is notified on completion.
-
shutdownInput
io.netty.channel.ChannelFuture shutdownInput(int error, io.netty.channel.ChannelPromise promise)Shutdown the input of the stream with the given error code. This means aSTOP_SENDINGframe will be send to the remote peer and all data received will be discarded.- Parameters:
error- the error to send as part of theSTOP_SENDINGframe.promise- will be notified on completion.- Returns:
- the future that is notified on completion.
-
shutdownOutput
default io.netty.channel.ChannelFuture shutdownOutput(int error)
Shutdown the output of the stream with the given error code. This means aRESET_STREAMframe 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 aRESET_STREAMframe you should useshutdownOutput()which will shutdown the output by sending aFINand so signal a clean shutdown.- Parameters:
error- the error to send as part of theRESET_STREAMframe.- Returns:
- the future that is notified on completion.
-
shutdownOutput
io.netty.channel.ChannelFuture shutdownOutput(int error, io.netty.channel.ChannelPromise promise)Shutdown the output of the stream with the given error code. This means aRESET_STREAMframe 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 aRESET_STREAMframe you should useDuplexChannel.shutdownOutput(ChannelPromise)which will shutdown the output by sending aFINand so signal a clean shutdown.- Parameters:
error- the error to send as part of theRESET_STREAMframe.promise- will be notified on completion.- Returns:
- the future that is notified on completion.
-
localAddress
QuicStreamAddress localAddress()
- Specified by:
localAddressin interfaceio.netty.channel.Channel
-
remoteAddress
QuicStreamAddress remoteAddress()
- Specified by:
remoteAddressin interfaceio.netty.channel.Channel
-
isLocalCreated
boolean isLocalCreated()
Returnstrueif the stream was created locally.- Returns:
trueif created locally,falseotherwise.
-
type
QuicStreamType type()
Returns theQuicStreamTypeof the stream.- Returns:
QuicStreamTypeof this stream.
-
streamId
long streamId()
The id of the stream.- Returns:
- the stream id of this
QuicStreamChannel.
-
priority
@Nullable @Nullable QuicStreamPriority priority()
TheQuicStreamPriorityif explicit set for the stream viaupdatePriority(QuicStreamPriority)orupdatePriority(QuicStreamPriority, ChannelPromise). Otherwisenull.- Returns:
- the priority if any was set.
-
updatePriority
default io.netty.channel.ChannelFuture updatePriority(QuicStreamPriority priority)
Update the priority of the stream. A stream's priority determines the order in which stream data is sent on the wire (streams with lower priority are sent first).- Parameters:
priority- the priority.- Returns:
- future that is notified once the operation completes.
-
updatePriority
io.netty.channel.ChannelFuture updatePriority(QuicStreamPriority priority, io.netty.channel.ChannelPromise promise)
Update the priority of the stream. A stream's priority determines the order in which stream data is sent on the wire (streams with lower priority are sent first).- Parameters:
priority- the priority.promise- notified once operations completes.- Returns:
- future that is notified once the operation completes.
-
parent
QuicChannel parent()
- Specified by:
parentin interfaceio.netty.channel.Channel
-
read
QuicStreamChannel read()
- Specified by:
readin interfaceio.netty.channel.Channel- Specified by:
readin interfaceio.netty.channel.ChannelOutboundInvoker
-
flush
QuicStreamChannel flush()
- Specified by:
flushin interfaceio.netty.channel.Channel- Specified by:
flushin interfaceio.netty.channel.ChannelOutboundInvoker
-
config
QuicStreamChannelConfig config()
- Specified by:
configin interfaceio.netty.channel.Channel
-
-