线程优化
This commit is contained in:
@@ -121,7 +121,7 @@ public class BinaryUploader {
|
|||||||
// 先截图
|
// 先截图
|
||||||
if (v.cutPic()){
|
if (v.cutPic()){
|
||||||
// 开启进程,在转换视频文件
|
// 开启进程,在转换视频文件
|
||||||
new Thread(new Runnable() {
|
Thread thread = new Thread("video-convert") {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
@@ -131,7 +131,9 @@ public class BinaryUploader {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).start();
|
};
|
||||||
|
thread.setDaemon(true);
|
||||||
|
thread.start();
|
||||||
storageState.putInfo("url", ctx + PathFormat.format(savePath) + "." + v.getOutputFileExtension());
|
storageState.putInfo("url", ctx + PathFormat.format(savePath) + "." + v.getOutputFileExtension());
|
||||||
storageState.putInfo("type", "." + v.getOutputFileExtension());
|
storageState.putInfo("type", "." + v.getOutputFileExtension());
|
||||||
storageState.putInfo("original", originFileName +"."+ v.getInputFileExtension());
|
storageState.putInfo("original", originFileName +"."+ v.getInputFileExtension());
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ public class MsgInnerService extends CrudService<MsgInnerDao, MsgInner> {
|
|||||||
});
|
});
|
||||||
// 手动触发消息推送任务
|
// 手动触发消息推送任务
|
||||||
if (Global.TRUE.equals(Global.getProperty("msg.realtime.enabled"))){
|
if (Global.TRUE.equals(Global.getProperty("msg.realtime.enabled"))){
|
||||||
new Thread(){
|
Thread thread = new Thread("msg-push-task-execute"){
|
||||||
public void run() {
|
public void run() {
|
||||||
try{
|
try{
|
||||||
MsgPushUtils.getMsgPushTask().execute();
|
MsgPushUtils.getMsgPushTask().execute();
|
||||||
@@ -198,7 +198,9 @@ public class MsgInnerService extends CrudService<MsgInnerDao, MsgInner> {
|
|||||||
logger.error("实时消息发送失败,推送服务配置不正确。", ex);
|
logger.error("实时消息发送失败,推送服务配置不正确。", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.start();
|
};
|
||||||
|
thread.setDaemon(true);
|
||||||
|
thread.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,4 @@
|
|||||||
4.1.6
|
4.1.6
|
||||||
4.1.7
|
4.1.7
|
||||||
4.1.8
|
4.1.8
|
||||||
|
4.1.9
|
||||||
Reference in New Issue
Block a user