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

Remove @Sharable and replace it with default method #12522

Merged
merged 3 commits into from
Jun 29, 2022

Conversation

normanmaurer
Copy link
Member

Motivation:

Now that we depend on java8+ we should just use a default method that can be override to declare a handler sharable. This makes things a bit cheaper and also allow to fail to restrict sharable when compiling by let implementations declare the method final.

Modifications:

  • Remove annotation and add default method to ChannelHandler interface
  • Adjust implementations

Result:

Better way to declare a handler sharable or not

@normanmaurer normanmaurer added this to the 5.0.0.Alpha3 milestone Jun 28, 2022
Copy link
Contributor

@hyperxpro hyperxpro left a comment

Choose a reason for hiding this comment

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

LGTM :)

Copy link
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

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

Just one documentation nit. Thanks for cleaning this up. 👍

normanmaurer and others added 3 commits June 29, 2022 11:13
Motivation:

Now that we depend on java8+ we should just use a default method that can be override to declare a handler sharable. This makes things a bit cheaper and also allow to fail to restrict sharable when compiling by let implementations declare the method final.

Modifications:

- Remove annotation and add default method to ChannelHandler interface
- Adjust implementations

Result:

Better way to declare a handler sharable or not
@normanmaurer normanmaurer merged commit b4635d5 into main Jun 29, 2022
@normanmaurer normanmaurer deleted the sharable_annotation branch June 29, 2022 09:14
violetagg added a commit to reactor/reactor-netty that referenced this pull request Jun 29, 2022
- `@Sharable` is removed netty/netty#12522
- `ByteToMessageDecoderForBuffer` is renamed to `ByteToMessageDecoder` netty/netty#12512
- `ByteBuf` adapters are moved to Netty Contrib netty/netty#12512
- Enable `ObservabilitySmokeTest` netty/netty#12518
- `ByteBufAllocatorMetrics` functionality needs migration #2341
- Adapt CI build

Related to #1873
violetagg added a commit to reactor/reactor-netty that referenced this pull request Jun 29, 2022
- `@Sharable` is removed netty/netty#12522
- `ByteToMessageDecoderForBuffer` is renamed to `ByteToMessageDecoder` netty/netty#12512
- `ByteBuf` adapters are moved to Netty Contrib netty/netty#12512
- Enable `ObservabilitySmokeTest` netty/netty#12518
- `ByteBufAllocatorMetrics` functionality needs migration #2341
- Adapt CI build

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

Successfully merging this pull request may close these issues.

None yet

4 participants