/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
- package com.emis.caesarui.webccr.object;
- import javax.servlet.ServletContext;
- /**
- * 悠遊卡錯誤訊息代碼reload執行緒
- */
- public class Uu2ErrMsgUpdateThread extends Thread {
- ServletContext m_application;
- public Uu2ErrMsgUpdateThread(ServletContext application) {
- m_application = application;
- }
- public void run() {
- while(true) {
- try {
- Thread.sleep(1 * 10 * 60 * 1000);
- } catch (Exception e) {}
- try {
- UU2_ERRMSG.backgroundLoad(m_application);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
- }