支持Retifive的操作,调试自动打包 优化代码
This commit is contained in:
@@ -222,6 +222,7 @@ public class MessageRetifiveController {
|
|||||||
RefreshMsg refreshMsg = appClient.getMessageFuture().get(10, TimeUnit.SECONDS);// 设置超时时间,例如10秒
|
RefreshMsg refreshMsg = appClient.getMessageFuture().get(10, TimeUnit.SECONDS);// 设置超时时间,例如10秒
|
||||||
if (DataType.DataTypes.FIELD_LIST == refreshMsg.payload().dataType()){
|
if (DataType.DataTypes.FIELD_LIST == refreshMsg.payload().dataType()){
|
||||||
List<String> strings = decode4(refreshMsg.payload().fieldList());
|
List<String> strings = decode4(refreshMsg.payload().fieldList());
|
||||||
|
if(strings.size()>0){
|
||||||
appClient.subscribeList(strings); // 根据itemName订阅
|
appClient.subscribeList(strings); // 根据itemName订阅
|
||||||
// 等待消息
|
// 等待消息
|
||||||
List<RefreshMsg> refreshMsgs = appClient.getMessagesFuture().get(10, TimeUnit.SECONDS);
|
List<RefreshMsg> refreshMsgs = appClient.getMessagesFuture().get(10, TimeUnit.SECONDS);
|
||||||
@@ -229,6 +230,7 @@ public class MessageRetifiveController {
|
|||||||
list.add(decode3(msg.payload().fieldList(),msg.name()));
|
list.add(decode3(msg.payload().fieldList(),msg.name()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("获取股票详情link:"+name,e);
|
log.error("获取股票详情link:"+name,e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user