GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — ChannelHandler: Simplify ChannelHandler hierarchy by normanmaurer · Pull Request #15991 · netty/netty Conversation
Member
Motivation: As we are now able to use default methods we can remove all the Channel*HandlerAdapter classes. This simplfies the hierachy a lot and reduced code that we need to maintain. Modifications:
Result: Simplify ChannelHandler hierarchy and remove duplicated code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
bryce-anderson
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That was a monster. 😂
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
chrisvest
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had some comments
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'll have to iterate the pipeline. Or maintain an identity hash set. This is the place where we enforce sharability.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem is that we would do this in a "static fashion" because we want to detect if a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, it could be added to a different pipeline. Yeah, that complicates stuff. Ok, let's skip this for now.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
normanmaurer
force-pushed
the
channelhandler_hierarchy
branch
from
52e6412 to
4bea43e
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
force-pushed
the
channelhandler_hierarchy
branch
from
4bea43e to
76a1532
Compare
Motivation: As we are now able to use default methods we can remove all the Channel*HandlerAdapter classes. This simplfies the hierachy a lot and reduced code that we need to maintain. Beside this we can also get rid of the @sharable annotation and just make isSharable() part of the ChannelHandler interface itself. Modifications: - Add default methods to ChannelHandler to remove ChannelHandlerAdapter - Add default methods to ChannelInboundHandler to remove ChannelInboundHandlerAdapter - Add default methods to ChannelOutboundHandler to remove ChannelOutboundHandlerAdapter - Change ChannelDuplexHandler from a class to an interface - Remove redunant code and just use the default methods where possible. - Remove @sharable and replace it with ChannelHandler.isSharable() - Adjust code to use interfaces only and not the adapter classes. - Remove all adapter classes. Result: Simplify ChannelHandler hierarchy and remove duplicated code …icheQuicCodecTest.java Co-authored-by: Bryce Anderson <[email protected]>
normanmaurer
force-pushed
the
channelhandler_hierarchy
branch
from
76a1532 to
737813b
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
chrisvest
reviewed
Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |