public class PartitionThreadEntity extends Object implements Serializable
PartitionRunnableBuilder
,你可以使用到的参数.Constructor and Description |
---|
PartitionThreadEntity(String name,
int totalListCount,
int eachSize,
int batchNumber,
int currentListSize)
Instantiates a new group thread entity.
|
Modifier and Type | Method and Description |
---|---|
int |
getBatchNumber()
获得 批次,当前线程序号,从0开始.
|
int |
getCurrentListSize()
获得 当前线程执行数量,=perBatchList size.
|
int |
getEachSize()
获得 分配大小.
|
String |
getName()
获得 线程的名字.
|
int |
getTotalListCount()
获得 总数,list 的总size.
|
String |
toString() |
public PartitionThreadEntity(String name, int totalListCount, int eachSize, int batchNumber, int currentListSize)
name
- 线程的名字totalListCount
- 总数,list 的总sizeeachSize
- 分配大小batchNumber
- 批次,当前线程序号,从0开始currentListSize
- 当前线程执行数量,=perBatchList sizepublic String getName()
public int getTotalListCount()
public int getBatchNumber()
public int getCurrentListSize()
public int getEachSize()
Copyright © 2008-2019 by feilong