8081828384858687888990
} public void failed(Exception ex) { synchronized (count) { count.incrementAndGet(); count.notifyAll(); } } }; for (int i = 0; i < 100; i++) {
124125126127128129130131132133134
SyncListener sl = new SyncListener() { public void synced(LSN lsn) { synchronized (count) { count.incrementAndGet(); count.notifyAll(); // System.out.println("wrote Entry: " + // entry.getLogSequenceNo()); } }
133134135136137138139140141142143
181182183184185186187188189190191
SyncListener sl = new SyncListener() { public void synced(LSN lsn) { synchronized (count) { count.incrementAndGet(); count.notifyAll(); } } public void failed(Exception ex) { fail("this should not happen");
190191192193194195196197198199200
public void failed(Exception ex) { fail("this should not happen"); synchronized (count) { count.incrementAndGet(); count.notifyAll(); } } }; for (int i = 0; i < 100; i++) {
348349350351352353354355356357358
SyncListener sl = new SyncListener() { public void synced(LSN lsn) { synchronized (count) { count.incrementAndGet(); count.notifyAll(); } } public void failed(Exception ex) { synchronized (count) {
356357358359360361362363364365366
public void failed(Exception ex) { synchronized (count) { System.err.println(ex); count.incrementAndGet(); count.notifyAll(); } } }; for (int i = 0; i < 100; i++) {
432433434435436437438439440441442
441442443444445446447448449450451
public void failed(Exception ex) { fail("this should not happen"); synchronized (count) { count.incrementAndGet(); count.notifyAll(); } } }; for (int i = 0; i < numEntries; i++) {
209210211212213214215216217218219
} semaphore.returnAll(leases); synchronized(available) { available.addAndGet(thisQty); available.notifyAll(); } } } } finally