netty5/transport/src/test/java/io/netty/channel
Chris Vest 782d70281e
Reduce reliance on ScheduledFuture (#11635)
Motivation:
If we don't need the scheduled future, then it will be one less complication when we change Netty Future to no longer extend JDK Future.
It would also result in fewer elements in our API.

Modification:
There was only one real use of ScheduledFuture in our code, in Cache.
This has been changed to wrap an ordinary future with a deadline for implementing the Delayed interface.
All other places were effectively overspecifying by relying on ScheduledFuture.
A few places were also specifying JDK Futures - these have been changed to specify Netty Futures.

Result:
Reduced dependency on the ScheduledFuture interfaces.
2021-08-31 16:06:34 +02:00
..
embedded Reduce reliance on ScheduledFuture (#11635) 2021-08-31 16:06:34 +02:00
group Clean up Future/Promises API (#11575) 2021-08-20 09:55:16 +02:00
local Add executor() to ChannelOutboundInvoker and let it replace eventLoop() (#11617) 2021-08-25 18:31:24 +02:00
nio Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
socket Adjust usage of ChannelFutureListeners.CLOSE to use the ChannelHandlerContext (#11631) 2021-08-31 12:49:30 +02:00
AbstractChannelTest.java Fix test-failures caused by NPE (#11619) 2021-08-26 09:41:41 +02:00
AbstractCoalescingBufferQueueTest.java Don't take Promise as argument in Channel API. (#11346) 2021-08-25 14:12:33 +02:00
AbstractEventLoopTest.java All *Bootstrap methods that used to return ChannelFuture now return Future<Channel> (#11517) 2021-08-03 19:43:38 +02:00
AdaptiveRecvByteBufAllocatorTest.java Make variables final (#11548) 2021-08-06 09:28:12 +02:00
BaseChannelTest.java Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
ChannelHandlerAdapterTest.java Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
ChannelInitializerTest.java Add executor() to ChannelOutboundInvoker and let it replace eventLoop() (#11617) 2021-08-25 18:31:24 +02:00
ChannelOptionTest.java Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
ChannelOutboundBufferTest.java Add executor() to ChannelOutboundInvoker and let it replace eventLoop() (#11617) 2021-08-25 18:31:24 +02:00
CoalescingBufferQueueTest.java Don't take Promise as argument in Channel API. (#11346) 2021-08-25 14:12:33 +02:00
CombinedChannelDuplexHandlerTest.java Remove deprecated Channel*Handler* classes (#11615) 2021-08-25 19:04:32 +02:00
DefaultChannelIdTest.java Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
DefaultChannelPipelineTailTest.java Clean up Future/Promises API (#11575) 2021-08-20 09:55:16 +02:00
DefaultChannelPipelineTest.java Add executor() to ChannelOutboundInvoker and let it replace eventLoop() (#11617) 2021-08-25 18:31:24 +02:00
DefaultFileRegionTest.java Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
LoggingHandler.java Don't take Promise as argument in Channel API. (#11346) 2021-08-25 14:12:33 +02:00
PendingWriteQueueTest.java Add executor() to ChannelOutboundInvoker and let it replace eventLoop() (#11617) 2021-08-25 18:31:24 +02:00
ReentrantChannelTest.java Adjust usage of ChannelFutureListeners.CLOSE to use the ChannelHandlerContext (#11631) 2021-08-31 12:49:30 +02:00
SimpleUserEventChannelHandlerTest.java Migrate transport tests to JUnit 5 (#11315) 2021-05-26 10:47:15 +02:00
SingleThreadEventLoopTest.java Don't take Promise as argument in Channel API. (#11346) 2021-08-25 14:12:33 +02:00