任务组队列完成
This commit is contained in:
@ -40,7 +40,7 @@ class Configuration {
|
||||
/**
|
||||
* 旧任务数
|
||||
*/
|
||||
public static int oldMaxTaskNum = 2;
|
||||
public int oldMaxTaskNum = 2;
|
||||
|
||||
/**
|
||||
* 是否发送任务广播,true,发送
|
||||
@ -176,7 +176,8 @@ class Configuration {
|
||||
try {
|
||||
for (Field field : fields) {
|
||||
int m = field.getModifiers();
|
||||
if (Modifier.isFinal(m) || Modifier.isStatic(m)) {
|
||||
if (field.getName().equals("oldMaxTaskNum") || Modifier.isFinal(m) || Modifier.isStatic(
|
||||
m)) {
|
||||
continue;
|
||||
}
|
||||
field.setAccessible(true);
|
||||
|
@ -23,8 +23,7 @@ import java.util.Map;
|
||||
* Created by lyy on 2017/2/9.
|
||||
* 上传任务实体
|
||||
*/
|
||||
public class UploadTaskEntity extends AbsTaskEntity {
|
||||
public UploadEntity uploadEntity;
|
||||
public class UploadTaskEntity extends AbsTaskEntity<UploadEntity> {
|
||||
public String uploadUrl; //上传路径
|
||||
public String attachment; //文件上传需要的key
|
||||
public String contentType = "multipart/form-data"; //上传的文件类型
|
||||
@ -36,11 +35,8 @@ public class UploadTaskEntity extends AbsTaskEntity {
|
||||
*/
|
||||
public Map<String, String> formFields = new HashMap<>();
|
||||
|
||||
public UploadTaskEntity(UploadEntity downloadEntity) {
|
||||
this.uploadEntity = downloadEntity;
|
||||
public UploadTaskEntity(UploadEntity entity) {
|
||||
this.entity = entity;
|
||||
}
|
||||
|
||||
@Override public UploadEntity getEntity() {
|
||||
return uploadEntity;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user