You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
}
The text was updated successfully, but these errors were encountered:
venusdrogon
changed the title
新建 不带PartitionThreadConfig 的多线程方法
新建com.feilong.core.lang.ThreadUtil.execute(List<T>, Map<String, ?>, PartitionPerHandler<T>)
Nov 19, 2023
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));
}
The text was updated successfully, but these errors were encountered: