netty5/transport/src/main/java/io/netty/channel
Travis Haagen a75dcb2756 Made it easier to use custom ChannelId instances with Channel implementations that rely on the AbstractChannel(Channel parent) constructor.
Motivation:

The AbstractChannel(Channel parent) constructor was previously hard-coded to always
call DefaultChannelId.newInstance(), and this made it difficult to use a custom
ChannelId implementation with some commonly used Channel implementations.

Modifications:

Introduced newId() method in AbstractChannel, which by default returns
DefaultChannelId.newInstance() but can be overridden by subclasses. Added
ensureDefaultChannelId() test to AbstractChannelTest, to ensure the prior
behavior of calling DefaultChannelId.newInstance() still holds with the
AbstractChannel(Channel parent) constructor.

Result:

AbstractChannel now has the protected newId() method, but there is no functional
difference.
2016-02-02 08:33:42 +01:00
..
embedded Allow to change if EmbeddedChannel should handle close() and disconnect() different. 2016-01-14 07:19:23 +01:00
group Fix race condition of DefaultChannelGroup by introducing a closed flag. 2015-08-27 09:50:09 +02:00
local Ensure connectPromise is not notified before fireChannelActive() is called. 2016-01-18 09:28:43 +01:00
nio [#2363] Correctly null out SelectionKey[] when selectAgain 2016-01-08 09:04:10 +01:00
oio maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
pool Avoid unnecessary boxing/unboxing 2016-01-08 17:38:20 +01:00
socket OioServerChannel Default Max Messages Per Read Too High 2016-01-29 11:34:00 -08:00
AbstractChannel.java Made it easier to use custom ChannelId instances with Channel implementations that rely on the AbstractChannel(Channel parent) constructor. 2016-02-02 08:33:42 +01:00
AbstractChannelHandlerContext.java Ensure ChannelHandler.handlerAdded(...) is always called as first method of the handler 2016-01-28 13:24:36 +01:00
AbstractEventLoop.java Implement EventExecutor.parent() in AbstractEventExecutor 2014-03-24 11:05:51 +09:00
AbstractEventLoopGroup.java Add EventExecutor.children() in favor of iterator() 2014-03-24 12:32:55 +09:00
AbstractServerChannel.java maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
AdaptiveRecvByteBufAllocator.java DefaultChannelConfig maxMessagesPerRead default not always set 2015-11-25 15:14:07 -08:00
AddressedEnvelope.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
Channel.java Channel writable bytes feature 2015-06-12 12:39:53 -07:00
ChannelConfig.java maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
ChannelDuplexHandler.java More javadoc fixes 2013-07-14 18:04:33 +02:00
ChannelException.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
ChannelFactory.java Name resolver API and DNS-based name resolver 2014-10-16 17:05:20 +09:00
ChannelFlushPromiseNotifier.java ChannelFlushPromiseNotifier should allow long value for pendingDataSize 2014-06-03 17:34:53 +02:00
ChannelFuture.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00
ChannelFutureListener.java Replace TransferFuture(Listener) with (Channel)ProgressiveFuture(Listener) 2013-04-15 15:26:20 +09:00
ChannelHandler.java Mark ChannelHandler.exceptionCaught(...) as deprected. 2015-11-23 09:59:22 +01:00
ChannelHandlerAdapter.java maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
ChannelHandlerContext.java Add ChannelHandlerContext.invoker() 2016-01-22 14:04:35 +01:00
ChannelHandlerInvoker.java Synchronized between 4.1 and master again (part 2) 2014-04-25 15:06:26 +09:00
ChannelHandlerInvokerUtil.java Revert "Do not suppress channelReadComplete() when a handler was just added" 2015-04-20 09:10:29 +02:00
ChannelId.java Resurrect Channel.id() with global uniqueness 2014-02-13 15:53:07 -08:00
ChannelInboundHandler.java Mark ChannelHandler.exceptionCaught(...) as deprected. 2015-11-23 09:59:22 +01:00
ChannelInboundHandlerAdapter.java Mark ChannelHandler.exceptionCaught(...) as deprecated in preparation to move to ChannelInboundHandler. Related to [#1808] 2013-09-08 20:11:51 +02:00
ChannelInitializer.java [#3780] Handle ChannelInitializer exception in exceptionCaught() 2015-07-07 09:13:22 +02:00
ChannelMetadata.java Allow to change if EmbeddedChannel should handle close() and disconnect() different. 2016-01-14 07:19:23 +01:00
ChannelOption.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
ChannelOutboundBuffer.java Use OneTimeTask where possible to reduce object creation 2015-11-20 14:39:06 -08:00
ChannelOutboundHandler.java Undeprecate deregister() and chanelUnregistered() 2014-04-25 16:40:42 +09:00
ChannelOutboundHandlerAdapter.java Fix ChannelOutboundHandlerAdapter javadoc 2016-01-26 10:13:16 +01:00
ChannelPipeline.java Fix javadoc link 2015-12-22 20:53:41 +01:00
ChannelPipelineException.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
ChannelProgressiveFuture.java Make EventExecutor.shutdownGracefully() return Future 2013-06-12 08:00:54 +09:00
ChannelProgressiveFutureListener.java Replace TransferFuture(Listener) with (Channel)ProgressiveFuture(Listener) 2013-04-15 15:26:20 +09:00
ChannelProgressivePromise.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00
ChannelPromise.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00
ChannelPromiseAggregator.java Add generic versions of PromiseAggregator and PromiseNotifier. 2014-11-07 09:06:58 +01:00
ChannelPromiseNotifier.java Fix possible IllegalStateException caused by closeNotifyTimeout when using SslHandler 2015-05-06 21:50:16 +02:00
CoalescingBufferQueue.java Add generic utility for enqueuing buffers with promises and dequeueing them in arbitrary byte ranges. 2015-07-09 07:50:02 -07:00
CombinedChannelDuplexHandler.java Add ChannelHandlerContext.invoker() 2016-01-22 14:04:35 +01:00
CompleteChannelFuture.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00
ConnectTimeoutException.java [#1036] Add special ConnectTimeoutException which is thrown if a connection failed because of a timeout 2013-03-07 20:53:45 +01:00
DefaultAddressedEnvelope.java Revamp DNS codec 2015-05-01 11:33:16 +09:00
DefaultChannelConfig.java Fix javadoc links and tags 2015-12-26 08:34:31 +01:00
DefaultChannelHandlerContext.java Optimize DefaultChannelPipeline in terms of memory usage and initialization time 2014-06-10 12:18:38 +02:00
DefaultChannelHandlerInvoker.java Customizable estimation for messages written outside the EventLoop 2015-12-23 23:04:23 +01:00
DefaultChannelId.java Scoring loopback addresses as 0 in DefaultChannelId 2015-05-08 13:14:36 -07:00
DefaultChannelPipeline.java Ensure ChannelHandler.handlerAdded(...) is always called as first method of the handler 2016-01-28 13:24:36 +01:00
DefaultChannelProgressivePromise.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00
DefaultChannelPromise.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00
DefaultEventLoop.java Replace LocalEventLoopGroup with DefaultEventLoopGroup 2014-03-24 11:39:55 +09:00
DefaultEventLoopGroup.java Replace LocalEventLoopGroup with DefaultEventLoopGroup 2014-03-24 11:39:55 +09:00
DefaultFileRegion.java Allow to lazy create a DefaultFileRegion from a File 2014-12-11 12:04:17 +01:00
DefaultMaxBytesRecvByteBufAllocator.java maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
DefaultMaxMessagesRecvByteBufAllocator.java maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
DefaultMessageSizeEstimator.java [#4363] Improve size calculation of messages when written from outside the EventLoop 2015-10-28 21:54:31 +01:00
EventLoop.java fixed word - issue #4469 2015-11-19 07:33:02 -08:00
EventLoopException.java Fix types in javadocs 2013-07-22 19:14:36 +02:00
EventLoopGroup.java Minor idiomatic changes to java docs 2015-02-04 08:28:29 +01:00
FailedChannelFuture.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
FileRegion.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
FixedRecvByteBufAllocator.java Not share FixedRecvByteBufAllocator.HandleImpl 2015-10-22 09:47:23 +02:00
MaxBytesRecvByteBufAllocator.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
MaxMessagesRecvByteBufAllocator.java maxBytesPerRead channel configuration 2015-08-05 23:59:54 -07:00
MessageSizeEstimator.java Correctly update Channel.isWritable() when the write happens from outside the EventLoop in a fast fashion. Fixes [#1697] 2013-08-07 10:10:43 +02:00
MultithreadEventLoopGroup.java Correct the return type of MultithreadEventLoopGroup.newChild() 2014-03-24 17:05:36 +09:00
package-info.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
PendingWriteQueue.java [#3967] Guard against NPE in PendingWriteQueue 2015-07-17 21:31:27 +02:00
RecvByteBufAllocator.java Fix javadoc links and tags 2015-12-26 08:34:31 +01:00
ReflectiveChannelFactory.java Name resolver API and DNS-based name resolver 2014-10-16 17:05:20 +09:00
ServerChannel.java Revert file mode 2012-07-07 14:39:35 +09:00
SimpleChannelInboundHandler.java Small improvement in SimpleChannelInboundHandlerAdapter javadoc 2014-06-18 14:49:36 +02:00
SingleThreadEventLoop.java User-definable thread model via ChannelHandlerInvoker 2014-03-24 18:09:27 +09:00
SucceededChannelFuture.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
ThreadLocalPooledDirectByteBuf.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
ThreadPerChannelEventLoop.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
ThreadPerChannelEventLoopGroup.java Add EventExecutor.children() in favor of iterator() 2014-03-24 12:32:55 +09:00
VoidChannelPromise.java [#2618] Introduce ChannelPromise.unvoid() and ChannelFuture.isVoid() 2014-07-03 14:17:12 +02:00