Uses of Interface
io.netty.channel.Channel
-
Packages that use Channel Package Description io.netty.bootstrap The helper classes with fluent API which enable an easy implementation of typical client side and server side channel initialization.io.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty.channel.embedded A virtualChannelthat helps wrapping a series of handlers to unit test the handlers or use them in non-I/O context.io.netty.channel.group A channel registry which helps a user maintain the list of openChannels and perform bulk operations on them.io.netty.channel.local A virtual transport that enables the communication between the two parties in the same virtual machine.io.netty.channel.nio NIO-based channel API implementation - recommended for a large number of connections (>= 1000).io.netty.channel.oio Old blocking I/O based channel API implementation - recommended for a small number of connections (< 1000).io.netty.channel.pool Implementations and API forChannelpools.io.netty.channel.socket Abstract TCP and UDP socket interfaces which extend the core channel API.io.netty.channel.socket.nio NIO-based socket channel API implementation - recommended for a large number of connections (>= 1000).io.netty.channel.socket.oio Old blocking I/O based socket channel API implementation - recommended for a small number of connections (< 1000). -
-
Uses of Channel in io.netty.bootstrap
Classes in io.netty.bootstrap with type parameters of type Channel Modifier and Type Class Description classAbstractBootstrap<B extends AbstractBootstrap<B,C>,C extends Channel>AbstractBootstrapis a helper class that makes it easy to bootstrap aChannel.classAbstractBootstrapConfig<B extends AbstractBootstrap<B,C>,C extends Channel>Exposes the configuration of anAbstractBootstrap.interfaceChannelFactory<T extends Channel>Deprecated.UseChannelFactoryinstead.Methods in io.netty.bootstrap with parameters of type Channel Modifier and Type Method Description voidChannelInitializerExtension. postInitializeClientChannel(Channel channel)Called byBootstrapafter the initialization of the given client channel.voidChannelInitializerExtension. postInitializeServerChildChannel(Channel channel)Called byServerBootstrapafter the initialization of the given child channel. -
Uses of Channel in io.netty.channel
Classes in io.netty.channel with type parameters of type Channel Modifier and Type Interface Description interfaceChannelFactory<T extends Channel>Creates a newChannel.classChannelInitializer<C extends Channel>A specialChannelInboundHandlerwhich offers an easy way to initialize aChannelonce it was registered to itsEventLoop.classReflectiveChannelFactory<T extends Channel>AChannelFactorythat instantiates a newChannelby invoking its default constructor reflectively.protected static classSingleThreadEventLoop.ChannelsReadOnlyIterator<T extends Channel>Subinterfaces of Channel in io.netty.channel Modifier and Type Interface Description interfaceServerChannelClasses in io.netty.channel that implement Channel Modifier and Type Class Description classAbstractChannelA skeletalChannelimplementation.classAbstractServerChannelA skeletal server-sideChannelimplementation.Fields in io.netty.channel declared as Channel Modifier and Type Field Description protected ChannelDefaultChannelConfig. channelMethods in io.netty.channel that return Channel Modifier and Type Method Description ChannelChannelFuture. channel()Returns a channel where the I/O operation associated with this future takes place.ChannelChannelHandlerContext. channel()Return theChannelwhich is bound to theChannelHandlerContext.ChannelChannelPipeline. channel()Returns theChannelthat this pipeline is attached to.ChannelChannelPromise. channel()ChannelDefaultChannelPipeline. channel()ChannelDefaultChannelProgressivePromise. channel()ChannelDefaultChannelPromise. channel()ChannelDelegatingChannelPromiseNotifier. channel()ChannelVoidChannelPromise. channel()default ChannelChannel. flush()ChannelSingleThreadEventLoop.ChannelsReadOnlyIterator. next()ChannelAbstractChannel. parent()ChannelChannel. parent()Returns the parent of this channel.default ChannelChannel. read()Methods in io.netty.channel that return types with arguments of type Channel Modifier and Type Method Description Iterator<Channel>SingleThreadEventLoop. registeredChannelsIterator()Methods in io.netty.channel with parameters of type Channel Modifier and Type Method Description intAbstractChannel. compareTo(Channel o)ChannelFutureEventLoopGroup. register(Channel channel)ChannelFutureEventLoopGroup. register(Channel channel, ChannelPromise promise)Deprecated.UseEventLoopGroup.register(ChannelPromise)instead.default ChannelFutureIoEventLoopGroup. register(Channel channel)Deprecated.ChannelFutureManualIoEventLoop. register(Channel channel)Deprecated.ChannelFutureManualIoEventLoop. register(Channel channel, ChannelPromise promise)Deprecated.ChannelFutureMultithreadEventLoopGroup. register(Channel channel)ChannelFutureMultithreadEventLoopGroup. register(Channel channel, ChannelPromise promise)Deprecated.ChannelFutureSingleThreadEventLoop. register(Channel channel)ChannelFutureSingleThreadEventLoop. register(Channel channel, ChannelPromise promise)Deprecated.ChannelFutureThreadPerChannelEventLoop. register(Channel channel, ChannelPromise promise)Deprecated.ChannelFutureThreadPerChannelEventLoopGroup. register(Channel channel)Deprecated.ChannelFutureThreadPerChannelEventLoopGroup. register(Channel channel, ChannelPromise promise)Deprecated.Constructors in io.netty.channel with parameters of type Channel Constructor Description AbstractChannel(Channel parent)Creates a new instance.AbstractChannel(Channel parent, ChannelId id)Creates a new instance.AbstractCoalescingBufferQueue(Channel channel, int initSize)Create a new instance.CoalescingBufferQueue(Channel channel)CoalescingBufferQueue(Channel channel, int initSize)CoalescingBufferQueue(Channel channel, int initSize, boolean updateWritability)DefaultChannelConfig(Channel channel)DefaultChannelConfig(Channel channel, RecvByteBufAllocator allocator)DefaultChannelPipeline(Channel channel)DefaultChannelProgressivePromise(Channel channel)Creates a new instance.DefaultChannelProgressivePromise(Channel channel, io.netty.util.concurrent.EventExecutor executor)Creates a new instance.DefaultChannelPromise(Channel channel)Creates a new instance.DefaultChannelPromise(Channel channel, io.netty.util.concurrent.EventExecutor executor)Creates a new instance.PendingWriteQueue(Channel channel)VoidChannelPromise(Channel channel, boolean fireException)Creates a new instance. -
Uses of Channel in io.netty.channel.embedded
Classes in io.netty.channel.embedded that implement Channel Modifier and Type Class Description classEmbeddedChannelBase class forChannelimplementations that are used in an embedded fashion.Methods in io.netty.channel.embedded that return Channel Modifier and Type Method Description ChannelEmbeddedChannel. flush()ChannelEmbeddedChannel. read()Methods in io.netty.channel.embedded with parameters of type Channel Modifier and Type Method Description EmbeddedChannel.BuilderEmbeddedChannel.Builder. parent(Channel parent)The parentChannelof thisEmbeddedChannel.Constructors in io.netty.channel.embedded with parameters of type Channel Constructor Description EmbeddedChannel(Channel parent, ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. -
Uses of Channel in io.netty.channel.group
Methods in io.netty.channel.group that return Channel Modifier and Type Method Description ChannelChannelGroup. find(ChannelId id)ChannelDefaultChannelGroup. find(ChannelId id)Methods in io.netty.channel.group that return types with arguments of type Channel Modifier and Type Method Description Iterator<Map.Entry<Channel,Throwable>>ChannelGroupException. iterator()Iterator<Channel>DefaultChannelGroup. iterator()Methods in io.netty.channel.group with parameters of type Channel Modifier and Type Method Description booleanDefaultChannelGroup. add(Channel channel)ChannelFutureChannelGroupFuture. find(Channel channel)Returns theChannelFutureof the individual I/O operation which is associated with the specifiedChannel.static ChannelMatcherChannelMatchers. is(Channel channel)Returns aChannelMatcherthat matches the givenChannel.static ChannelMatcherChannelMatchers. isNot(Channel channel)Returns aChannelMatcherthat matches allChannels except the given.booleanChannelMatcher. matches(Channel channel)Returnstrueif the operation should be also executed on the givenChannel.Method parameters in io.netty.channel.group with type arguments of type Channel Modifier and Type Method Description static ChannelMatcherChannelMatchers. isInstanceOf(Class<? extends Channel> clazz)Returns aChannelMatcherthat matches allChannels that are an instance of sub-type of the given class.static ChannelMatcherChannelMatchers. isNotInstanceOf(Class<? extends Channel> clazz)Returns aChannelMatcherthat matches allChannels that are not an instance of sub-type of the given class.Constructor parameters in io.netty.channel.group with type arguments of type Channel Constructor Description ChannelGroupException(Collection<Map.Entry<Channel,Throwable>> causes) -
Uses of Channel in io.netty.channel.local
Classes in io.netty.channel.local that implement Channel Modifier and Type Class Description classLocalChannelAChannelfor the local transport.classLocalServerChannelAServerChannelfor the local transport which allows in VM communication. -
Uses of Channel in io.netty.channel.nio
Classes in io.netty.channel.nio that implement Channel Modifier and Type Class Description classAbstractNioByteChannelAbstractNioChannelbase class forChannels that operate on bytes.classAbstractNioChannelAbstract base class forChannelimplementations which use a Selector based approach.classAbstractNioMessageChannelAbstractNioChannelbase class forChannels that operate on messages.Methods in io.netty.channel.nio that return types with arguments of type Channel Modifier and Type Method Description Iterator<Channel>NioEventLoop. registeredChannelsIterator()Deprecated.Constructors in io.netty.channel.nio with parameters of type Channel Constructor Description AbstractNioByteChannel(Channel parent, SelectableChannel ch)Create a new instanceAbstractNioChannel(Channel parent, SelectableChannel ch, int readOps)Create a new instanceAbstractNioChannel(Channel parent, SelectableChannel ch, NioIoOps readOps)AbstractNioMessageChannel(Channel parent, SelectableChannel ch, int readInterestOp)AbstractNioMessageChannel(Channel parent, SelectableChannel ch, NioIoOps readOps) -
Uses of Channel in io.netty.channel.oio
Classes in io.netty.channel.oio that implement Channel Modifier and Type Class Description classAbstractOioByteChannelDeprecated.use NIO / EPOLL / KQUEUE transport.classAbstractOioChannelDeprecated.use NIO / EPOLL / KQUEUE transport.classAbstractOioMessageChannelDeprecated.use NIO / EPOLL / KQUEUE transport.classOioByteStreamChannelDeprecated.use NIO / EPOLL / KQUEUE transport.Constructors in io.netty.channel.oio with parameters of type Channel Constructor Description AbstractOioByteChannel(Channel parent)Deprecated.AbstractOioChannel(Channel parent)Deprecated.AbstractOioMessageChannel(Channel parent)Deprecated.OioByteStreamChannel(Channel parent)Deprecated.Create a new instance -
Uses of Channel in io.netty.channel.pool
Methods in io.netty.channel.pool that return Channel Modifier and Type Method Description protected ChannelSimpleChannelPool. pollChannel()Poll aChannelout of the internal storage to reuse it.Methods in io.netty.channel.pool that return types with arguments of type Channel Modifier and Type Method Description io.netty.util.concurrent.Future<Channel>ChannelPool. acquire()Acquire aChannelfrom thisChannelPool.io.netty.util.concurrent.Future<Channel>ChannelPool. acquire(io.netty.util.concurrent.Promise<Channel> promise)Acquire aChannelfrom thisChannelPool.io.netty.util.concurrent.Future<Channel>FixedChannelPool. acquire(io.netty.util.concurrent.Promise<Channel> promise)io.netty.util.concurrent.Future<Channel>SimpleChannelPool. acquire()io.netty.util.concurrent.Future<Channel>SimpleChannelPool. acquire(io.netty.util.concurrent.Promise<Channel> promise)Methods in io.netty.channel.pool with parameters of type Channel Modifier and Type Method Description voidAbstractChannelPoolHandler. channelAcquired(Channel ch)NOOP implementation, sub-classes may override this.voidChannelPoolHandler. channelAcquired(Channel ch)Called once aChannelwas acquired by callingChannelPool.acquire()orChannelPool.acquire(Promise).voidChannelPoolHandler. channelCreated(Channel ch)Called once a newChannelis created in theChannelPool.voidAbstractChannelPoolHandler. channelReleased(Channel ch)NOOP implementation, sub-classes may override this.voidChannelPoolHandler. channelReleased(Channel ch)Called once aChannelwas released by callingChannelPool.release(Channel)orChannelPool.release(Channel, Promise).io.netty.util.concurrent.Future<Boolean>ChannelHealthChecker. isHealthy(Channel channel)Check if the given channel is healthy which means it can be used.protected booleanSimpleChannelPool. offerChannel(Channel channel)Offer aChannelback to the internal storage.io.netty.util.concurrent.Future<Void>ChannelPool. release(Channel channel)Release aChannelback to thisChannelPool.io.netty.util.concurrent.Future<Void>ChannelPool. release(Channel channel, io.netty.util.concurrent.Promise<Void> promise)Release aChannelback to thisChannelPool.io.netty.util.concurrent.Future<Void>FixedChannelPool. release(Channel channel, io.netty.util.concurrent.Promise<Void> promise)io.netty.util.concurrent.Future<Void>SimpleChannelPool. release(Channel channel)io.netty.util.concurrent.Future<Void>SimpleChannelPool. release(Channel channel, io.netty.util.concurrent.Promise<Void> promise)Method parameters in io.netty.channel.pool with type arguments of type Channel Modifier and Type Method Description io.netty.util.concurrent.Future<Channel>ChannelPool. acquire(io.netty.util.concurrent.Promise<Channel> promise)Acquire aChannelfrom thisChannelPool.io.netty.util.concurrent.Future<Channel>FixedChannelPool. acquire(io.netty.util.concurrent.Promise<Channel> promise)io.netty.util.concurrent.Future<Channel>SimpleChannelPool. acquire(io.netty.util.concurrent.Promise<Channel> promise) -
Uses of Channel in io.netty.channel.socket
Subinterfaces of Channel in io.netty.channel.socket Modifier and Type Interface Description interfaceDatagramChannelA UDP/IPChannel.interfaceDuplexChannelA duplexChannelthat has two sides that can be shutdown independently.interfaceServerSocketChannelA TCP/IPServerChannelwhich accepts incoming TCP/IP connections.interfaceSocketChannelA TCP/IP socketChannel. -
Uses of Channel in io.netty.channel.socket.nio
Classes in io.netty.channel.socket.nio that implement Channel Modifier and Type Class Description classNioDatagramChannelAn NIO datagramChannelthat sends and receives anAddressedEnvelope.classNioDomainSocketChannelDuplexChannelwhich uses NIO selector based implementation to support UNIX Domain Sockets.classNioServerDomainSocketChannelAServerChannelimplementation which uses NIO selector based implementation to support UNIX Domain Sockets.classNioServerSocketChannelAServerSocketChannelimplementation which uses NIO selector based implementation to accept new connections.classNioSocketChannelSocketChannelwhich uses NIO selector based implementation.Constructors in io.netty.channel.socket.nio with parameters of type Channel Constructor Description NioDomainSocketChannel(Channel parent, SocketChannel socket)Create a new instanceNioSocketChannel(Channel parent, SocketChannel socket)Create a new instance -
Uses of Channel in io.netty.channel.socket.oio
Classes in io.netty.channel.socket.oio that implement Channel Modifier and Type Class Description classOioDatagramChannelDeprecated.use NIO / EPOLL / KQUEUE transport.classOioServerSocketChannelDeprecated.use NIO / EPOLL / KQUEUE transport.classOioSocketChannelDeprecated.use NIO / EPOLL / KQUEUE transport.Constructors in io.netty.channel.socket.oio with parameters of type Channel Constructor Description OioSocketChannel(Channel parent, Socket socket)Deprecated.Create a new instance from the givenSocket
-