{"id":24332380,"url":"https://github.com/biuabiu/executor-group","last_synced_at":"2026-02-14T08:02:49.081Z","repository":{"id":57732605,"uuid":"448489967","full_name":"biuabiu/executor-group","owner":"biuabiu","description":"一款简单的 0依赖线程池集合执行Java™ 库","archived":false,"fork":false,"pushed_at":"2025-01-14T07:41:23.000Z","size":189,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T08:41:03.698Z","etag":null,"topics":["java-8","thread-pool"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biuabiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-16T07:48:00.000Z","updated_at":"2025-01-14T07:41:26.000Z","dependencies_parsed_at":"2022-09-13T15:00:26.683Z","dependency_job_id":null,"html_url":"https://github.com/biuabiu/executor-group","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biuabiu%2Fexecutor-group","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biuabiu%2Fexecutor-group/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biuabiu%2Fexecutor-group/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biuabiu%2Fexecutor-group/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biuabiu","download_url":"https://codeload.github.com/biuabiu/executor-group/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234452223,"owners_count":18834780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java-8","thread-pool"],"created_at":"2025-01-18T02:18:38.883Z","updated_at":"2025-09-27T18:31:39.700Z","avatar_url":"https://github.com/biuabiu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 项目说明\n***一款简单的 0依赖线程池集合执行Java™ 库***\n\n在JAVA项目中,常用MQ转发来自项目的大量消息;在特定消费场景中,需要保证Queue中的消息严格顺序消费,比如订单的\"创建、支付、发货、收货\"等场景\n\n以RocketMQ为例说明,单个Queue中的消息顺序入队,那么在消费时只需要保证该Key对应的消息严格顺序消费即可,言外之意不同维度的Key无关顺序性\n\n那么只需要提供一个按Key选择Thread执行的消费模型即可,所以ExecutorGroup应运而生,并且提供2套消费模型\n\n## ExecutorGroup模型\nExecutorGroup为 ***java.util.concurrent.ThreadPoolExecutor*** 的维护者,内部维护多个ThreadPoolExecutor,组合为ExecutorGroup\n\n其中ThreadPoolExecutor的core thread只有一个,目的就是为了达到执行的顺序性,支持线程选择策略,默认IDLE;另支持MOD,MIXED等策略,也支持自定义\n\n### 线程执行选择示意图\n![线程执行选择示意图](resources/ThreadSelect.gif)\n\n## MultiExecutorGroup模型 \nMultiExecutorGroup为ExecutorGroup的维护者,内部维护多个Group,组合为MultiExecutorGroup,默认只支持以Thread维度的MOD策略\n\n### 线程池组选择示意图\n![线程池组选择示意图](resources/ThreadPoolSelect.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiuabiu%2Fexecutor-group","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiuabiu%2Fexecutor-group","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiuabiu%2Fexecutor-group/lists"}