1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
public class InsertRecordThread implements Runnable{ private JjgExamQuesLoadDao jjgExamQuesLoadDao;
private LinkedBlockingDeque<DataModel> queue;
public InsertRecordThread(JjgExamQuesLoadDao jjg , LinkedBlockingDeque<DataModel> queue){ this.jjgExamQuesLoadDao = jjg; this.queue = queue; }
public void run(){ try{ DataModel event = queue.poll(); jjgExamQuesLoadDao.insertAnswerRecord(event); }catch(Exception e){ e.printStackTrace(); }
}
}
|
近期评论