假如一个高并发接口有两个返回参数,做到两个参数一一对应可以使用H
2023-08-27 本文已影响0人
皓皓amous
Map<Long, Long> targetId= new HashMap<>();
TestUtil.sendMsg(sdkClient, id, multiMsgList, true, false, new RequestCallBack() {
@Override
public void handleSuccess(Object o, Object o2, Object o3) {
if (((Long) o3) != null && ((SendMsgResult) o2) != null ) {
targetId.put(((Long) o3),((SendMsgResult) o2).getMsgID());
}
@Override
public void handleFailure(int code, String message) {
super.handleFailure(code, message);
}
@Override
public void onError(int code, String message) {
super.onError(code, message);
}
});