File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ public static class CallerRunsPolicy implements RejectedExecutionHandler {
342342 }
343343```
344344
345- ### 如果不允许丢弃任务任务,应该选择哪个拒绝策略
345+ ### 如果不允许丢弃任务任务,应该选择哪个拒绝策略?
346346
347347根据上面对线程池拒绝策略的介绍,相信大家很容易能够得出答案是:` CallerRunsPolicy ` 。
348348
@@ -368,7 +368,7 @@ public static class CallerRunsPolicy implements RejectedExecutionHandler {
368368
369369### CallerRunsPolicy 拒绝策略有什么风险?如何解决?
370370
371- 我们上面也提到了:如果想要保证任何一个任务请求都要被执行的话,那选择 CallerRunsPolicy 拒绝策略更合适一些。
371+ 我们上面也提到了:如果想要保证任何一个任务请求都要被执行的话,那选择 ` CallerRunsPolicy ` 拒绝策略更合适一些。
372372
373373不过,如果走到` CallerRunsPolicy ` 的任务是个非常耗时的任务,且处理提交任务的线程是主线程,可能会导致主线程阻塞,影响程序的正常运行。
374374
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ icon: tool
4242- [ Another Redis Desktop Manager] ( https://github.com/qishibo/AnotherRedisDesktopManager/blob/master/README.zh-CN.md ) :更快、更好、更稳定的 Redis 桌面(GUI)管理客户端,兼容 Windows、Mac、Linux。
4343- [ Tiny RDM] ( https://github.com/tiny-craft/tiny-rdm ) :一个更现代化的 Redis 桌面(GUI)管理客户端,基于 Webview2,兼容 Windows、Mac、Linux。
4444- [ Redis Manager] ( https://github.com/ngbdf/redis-manager ) :Redis 一站式管理平台,支持集群(cluster、master-replica、sentinel)的监控、安装(除 sentinel)、管理、告警以及基本的数据操作功能。
45+ - [ CacheCloud] ( https://github.com/sohutv/cachecloud ) :一个 Redis 云管理平台,支持 Redis 多种架构(Standalone、Sentinel、Cluster)高效管理、有效降低大规模 Redis 运维成本,提升资源管控能力和利用率。
46+ - [ RedisShake] ( https://github.com/tair-opensource/RedisShake ) :一个用于处理和迁移 Redis 数据的工具。
4547
4648## Docker
4749
You can’t perform that action at this time.
0 commit comments