Beispiel #1
0
 private void oturumSayisiArtir() {
   GregorianCalendar gcal = new GregorianCalendar();
   int minute = gcal.get(GregorianCalendar.MINUTE);
   int hour = gcal.get(GregorianCalendar.HOUR_OF_DAY);
   String statisticKey = "" + ((hour * 6) + (minute / 10));
   Element element = getStatisticCache().get(statisticUUID + statisticKey);
   OturumStatistic oturumSayisi = null;
   if (element == null) {
     oturumSayisi = new OturumStatistic(statisticKey);
   } else {
     oturumSayisi = (OturumStatistic) element.getValue();
   }
   oturumSayisi.oturumSayisiArtir();
   Element element2 = new Element(statisticUUID + statisticKey, oturumSayisi);
   getStatisticCache().put(element2);
 }