예제 #1
0
 @Override
 protected void finalize() throws Throwable {
   if (reservable) {
     LOGGER.warn(
         "Affinity lock for {} was discarded rather than release()d in a controlled manner.",
         assignedThread);
     release();
   }
   super.finalize();
 }
예제 #2
0
 @Override
 public void close() {
   release();
 }