Esempio n. 1
0
 @Transactional(isolation = REPEATABLE_READ)
 protected void setPool(PinTask task, String pool) throws CacheException {
   Pin pin = loadPinBelongingTo(task);
   pin.setExpirationTime(getExpirationTimeForSettingFlag());
   pin.setPool(pool);
   task.setPin(_dao.storePin(pin));
 }
Esempio n. 2
0
 @Transactional(isolation = REPEATABLE_READ)
 protected void setToPinned(PinTask task) throws CacheException {
   Pin pin = loadPinBelongingTo(task);
   pin.setExpirationTime(task.getExpirationTime());
   pin.setState(PINNED);
   task.setPin(_dao.storePin(pin));
 }
Esempio n. 3
0
 @Transactional(isolation = REPEATABLE_READ)
 protected void refreshTimeout(PinTask task, Date date) throws CacheException {
   Pin pin = loadPinBelongingTo(task);
   pin.setExpirationTime(date);
   task.setPin(_dao.storePin(pin));
 }