-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
如果 用户重写阻塞队列 offer方法,这种情况能够兼容么 #340
Comments
@simake2017 给一个可以说明/复现问题的、极简可运行的Demo工程:❤️
|
是这样的:
可运行demo,稍后给出,问题应该比较清楚的 |
编码的解决方法,已经有支持的: 对 @simake2017 应该是你说的兼容,兼容这样的使用方式? 演示Demo写了一个说明问题的、极简可运行的Demo,在分支 Lines 51 to 82 in 004668d
关于系统设计的讨论就像代码注释中所说的, Lines 56 to 67 in 004668d
这可能是 平时我们几乎没有看到定制/继承 看起来,像任务过滤这样的业务逻辑:
|
author Jerry Lee <[email protected]> 1640756168 +0800 committer 飞竑 <[email protected]> 1640940421 +0800 parent b6b98bf author Jerry Lee <[email protected]> 1640756168 +0800 committer 飞竑 <[email protected]> 1640940365 +0800 parent b6b98bf author Jerry Lee <[email protected]> 1640756168 +0800 committer 飞竑 <[email protected]> 1640940132 +0800 parent b6b98bf author Jerry Lee <[email protected]> 1640756168 +0800 committer 飞竑 <[email protected]> 1640939931 +0800 refactor: deprecated methods invoke new methods, not vice versa 提交TtlWrappers的说明demo; test: add demo code `CustomizedBlockingQueueWithTtlDemo` for alibaba#340 tests: add unit test for new methods `TtlWrappers.wrap*` refactor: deprecated methods invoke new methods, not vice versa test: add demo code `CustomizedBlockingQueueWithTtlDemo` for alibaba#340 tests: add unit test for new methods `TtlWrappers.wrap*` refactor: deprecated methods invoke new methods, not vice versa
@simake2017 这个 Issue 先 close。如果还有问题,可以继续讨论。 |
这里用户重写了一个阻塞队列,然后重写了put和offer方法,里面进行了强制转换,这种现在能兼容么
The text was updated successfully, but these errors were encountered: