@Override
  public void close() {
    while (!regs.isEmpty()) {
      final FinalizablePhantomReference<?> ref = regs.get(0);
      ref.finalizeReferent();
    }

    cache.invalidateAll();
    queue.close();
  }
예제 #2
0
 @After
 public void tearDown() {
   queue.close();
 }