/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

  1. package com.emis.caesarui.webccr.object;
  2. import javax.servlet.ServletContext;
  3. /**
  4. * 悠遊卡錯誤訊息代碼reload執行緒
  5. */
  6. public class Uu2ErrMsgUpdateThread extends Thread {
  7. ServletContext m_application;
  8. public Uu2ErrMsgUpdateThread(ServletContext application) {
  9. m_application = application;
  10. }
  11. public void run() {
  12. while(true) {
  13. try {
  14. Thread.sleep(1 * 10 * 60 * 1000);
  15. } catch (Exception e) {}
  16. try {
  17. UU2_ERRMSG.backgroundLoad(m_application);
  18. } catch (Exception e) {
  19. e.printStackTrace();
  20. }
  21. }
  22. }
  23. }