Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resurrect Channel.id() with global uniqueness #1983

Closed
wants to merge 1 commit into from
Closed

Conversation

trustin
Copy link
Member

@trustin trustin commented Nov 15, 2013

  • Add a new interface ChannelId and its default implementation which generates globally unique channel ID.
  • Replace AbstractChannel.hashCode with ChannelId.hashCode() and ChannelId.shortValue()

@@ -324,7 +356,7 @@ public static ByteBuf encodeString(ByteBufAllocator alloc, CharBuffer src, Chars
if (!cr.isUnderflow()) {
cr.throwException();
}
dst.writerIndex(dst.writerIndex() + (dstBuf.position() - pos));
dst.writerIndex(dst.writerIndex() + dstBuf.position() - pos);
release = false;
return dst;
} catch (CharacterCodingException x) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you commit this as a separate thing as it's not related ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ghost
Copy link

ghost commented Nov 15, 2013

Build result for #1983 at cc9f44dff5e29241f160e061a592ba57bcd645b9: Success

@ghost
Copy link

ghost commented Nov 15, 2013

Build result for #1983 at a688deb9a61352f316659f8642a429dc8eed5aa1: Success

- Add a new interface ChannelId and its default implementation which generates globally unique channel ID.
- Replace AbstractChannel.hashCode with ChannelId.hashCode() and ChannelId.shortValue()
- Add variants of ByteBuf.hexDump() which accept byte[] instead of ByteBuf.
@ghost
Copy link

ghost commented Nov 15, 2013

Build result for #1983 at 2fc742c: Success

@normanmaurer
Copy link
Member

@trustin looks good. go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants