Example #1
0
 protected void notifyAwaited(String lock_name, Owner owner) {
   for (LockNotification listener : lock_listeners) {
     try {
       listener.awaited(lock_name, owner);
     } catch (Throwable t) {
       log.error("failed notifying " + listener, t);
     }
   }
 }
Example #2
0
 protected void notifyLockDeleted(String lock_name) {
   for (LockNotification listener : lock_listeners) {
     try {
       listener.lockDeleted(lock_name);
     } catch (Throwable t) {
       log.error("failed notifying " + listener, t);
     }
   }
 }