if (srcVector != null
&& txSessionDTO.findElAttribute(SocketConst.TABLPHONE_CMD_HOOK) == null) {
BlockingQueue<byte[]> nextdata = srcVector.getNextdata();
nextdata.put(data);
List<byte[]> cdata = srcVector.getCdata();
// 对队列操作加锁
synchronized (cdata) {
while (!nextdata.isEmpty()) {
cdata.add(nextdata.poll());
}
if (txSessionDTO.findElAttribute(SocketConst.TABLPHONE_CMD_HOOK) == null) {
executeData(cdata, txSessionDTO);
} else {
// 挂机去除数据
cdata.clear();
nextdata.clear();
}
}
}