PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/webccr/src/com/emis/caesarui/webccr/object/Uu2ErrMsgUpdateThread.java

https://bitbucket.org/sanliou/synccr
Java | 32 lines | 20 code | 9 blank | 3 comment | 0 complexity | dd202238c84d0f784838079d79ac95bb MD5 | raw file
 1package com.emis.caesarui.webccr.object;
 2
 3import javax.servlet.ServletContext;
 4
 5/**
 6 * 悠遊卡錯誤訊息代碼reload執行緒
 7 */
 8public class Uu2ErrMsgUpdateThread extends Thread {
 9  ServletContext m_application;
10
11  public Uu2ErrMsgUpdateThread(ServletContext application) {
12    m_application = application;
13  }
14
15  public void run() {
16
17    while(true) {
18      try {
19        Thread.sleep(1 * 10 * 60 * 1000);
20      } catch (Exception e) {}
21
22      try {
23        UU2_ERRMSG.backgroundLoad(m_application);
24      } catch (Exception e) {
25        e.printStackTrace();
26      }
27
28    }
29
30
31  }
32}