@Counter(interval = 500) public void enduser(CounterBasket pw) { long time = System.currentTimeMillis(); long now = DateUtil.getMinUnit(time) / 5; if (now == last_sent) return; last_sent = now; time = (time - 10000) / DateUtil.MILLIS_PER_FIVE_MINUTE * DateUtil.MILLIS_PER_FIVE_MINUTE; SummaryPack p = EndUserSummary.getInstance().getAndClearNavTable(); if (p != null) { p.time = time; DataProxy.send(p); } p = EndUserSummary.getInstance().getAndClearAjaxTable(); if (p != null) { p.time = time; DataProxy.send(p); } p = EndUserSummary.getInstance().getAndClearErrorTable(); if (p != null) { p.time = time; DataProxy.send(p); } } }
@Counter(interval = 500) public void enduser(CounterBasket pw) { long time = System.currentTimeMillis(); long now = DateUtil.getMinUnit(time) / 5; if (now == last_sent) return; last_sent = now; time = (time - 10000) / DateUtil.MILLIS_PER_FIVE_MINUTE * DateUtil.MILLIS_PER_FIVE_MINUTE; SummaryPack p = EndUserSummary.getInstance().getAndClearNavTable(); if (p != null) { p.time = time; DataProxy.send(p); } p = EndUserSummary.getInstance().getAndClearAjaxTable(); if (p != null) { p.time = time; DataProxy.send(p); } p = EndUserSummary.getInstance().getAndClearErrorTable(); if (p != null) { p.time = time; DataProxy.send(p); } } }
@Counter(interval = 500) public void enduser(CounterBasket pw) { long time = System.currentTimeMillis(); long now = DateUtil.getMinUnit(time) / 5; if (now == last_sent) return; last_sent = now; time = (time - 10000) / DateUtil.MILLIS_PER_FIVE_MINUTE * DateUtil.MILLIS_PER_FIVE_MINUTE; SummaryPack p = EndUserSummary.getInstance().getAndClearNavTable(); if (p != null) { p.time = time; DataProxy.send(p); } p = EndUserSummary.getInstance().getAndClearAjaxTable(); if (p != null) { p.time = time; DataProxy.send(p); } p = EndUserSummary.getInstance().getAndClearErrorTable(); if (p != null) { p.time = time; DataProxy.send(p); } } }