/webccr/src/com/emis/caesarui/webccr/core/PromotionUpdateThread.java
https://bitbucket.org/sanliou/synccr · Java · 34 lines · 20 code · 10 blank · 4 comment · 0 complexity · dbb00db7d0e52d1e7c4055089bb087ad MD5 · raw file
- package com.emis.caesarui.webccr.core;
- import javax.servlet.ServletContext;
- /**
- * 促銷reload執行緒 參考亞太
- * 10分鐘reload
- */
- public class PromotionUpdateThread extends Thread {
- ServletContext m_application;
- public PromotionUpdateThread(ServletContext application) {
- m_application = application;
- }
- public void run() {
- while(true) {
- try {
- Thread.sleep( 10 * 60 * 1000);
- } catch (Exception e) {}
- try {
- PromotionMgr.backgroundLoad(m_application);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
- }