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

新建com.feilong.core.lang.ThreadUtil.execute(List<T>, Map<String, ?>, PartitionPerHandler<T>) #624

Closed
venusdrogon opened this issue Nov 14, 2023 · 0 comments
Labels
enhancement New feature or request feilong-core feilong-core
Milestone

Comments

@venusdrogon
Copy link
Collaborator

public static void execute(
List list,
PartitionThreadConfig partitionThreadConfig,
Map<String, ?> paramsMap,
PartitionPerHandler partitionPerHandler){
Validate.notEmpty(list, "list can't be null/empty!");
Validate.notNull(partitionThreadConfig, "partitionConfig can't be null!");
Validate.notNull(partitionPerHandler, "partitionPerHandler can't be null!");
//---------------------------------------------------------------
int eachSize = new PartitionEachSizeThreadConfigBuilder(partitionThreadConfig).build(list.size());
execute(list, eachSize, paramsMap, new DefaultPartitionRunnableBuilder(partitionPerHandler));
}

@venusdrogon venusdrogon added this to the 4.0.3 milestone Nov 14, 2023
@venusdrogon venusdrogon added the enhancement New feature or request label Nov 14, 2023
@venusdrogon venusdrogon changed the title 新建 不带PartitionThreadConfig 的多线程方法 新建com.feilong.core.lang.ThreadUtil.execute(List<T>, Map<String, ?>, PartitionPerHandler<T>) Nov 19, 2023
@venusdrogon venusdrogon added the feilong-core feilong-core label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feilong-core feilong-core
Projects
None yet
Development

No branches or pull requests

1 participant