DownloadListener.java
553 Bytes
package com.example.mina.client.base;
public class DownloadListener {
/**
* 当从设备端将数据同步到客户端的时候,将数据直接存入数据中,
* 该类会在ioHandler及其子类中被调用
* 设置attenuation的值,并将其存储到matrix_data的数据表中
*/
public void setAttenuation(String deviceId, int row, int col, int val) {
//TODO 实现将数据写入到数据库的逻辑
}
private String getCurrentThreadId() {
return Thread.currentThread().getName();
}
}