private void pollWrites() { try { while (!stopWriter.get()) { // Wait for a notification... synchronized (writes) { writes.notifyAll(); // If there is not enough to write, wait for a notification... while (writes.isEmpty() && checkpointLatch == null && !stopWriter.get()) { writes.wait(100); } if (writes.isEmpty()) { releaseCheckpointWaiter(); } } writeBatch(); } } catch (Throwable e) { LOG.info("An exception was raised while performing poll writes", e); } finally { releaseCheckpointWaiter(); } }
writes.notify(); } else { writeBatch();
writes.notify(); } else { writeBatch(); return;
private void pollWrites() { try { while (!stopWriter.get()) { // Wait for a notification... synchronized (writes) { writes.notifyAll(); // If there is not enough to write, wait for a notification... while (writes.isEmpty() && checkpointLatch == null && !stopWriter.get()) { writes.wait(100); } if (writes.isEmpty()) { releaseCheckpointWaiter(); } } writeBatch(); } } catch (Throwable e) { LOG.info("An exception was raised while performing poll writes", e); } finally { releaseCheckpointWaiter(); } }
private void pollWrites() { try { while (!stopWriter.get()) { // Wait for a notification... synchronized (writes) { writes.notifyAll(); // If there is not enough to write, wait for a notification... while (writes.isEmpty() && checkpointLatch == null && !stopWriter.get()) { writes.wait(100); } if (writes.isEmpty()) { releaseCheckpointWaiter(); } } writeBatch(); } } catch (Throwable e) { LOG.info("An exception was raised while performing poll writes", e); } finally { releaseCheckpointWaiter(); } }
private void pollWrites() { try { while (!stopWriter.get()) { // Wait for a notification... synchronized (writes) { writes.notifyAll(); // If there is not enough to write, wait for a notification... while (writes.isEmpty() && checkpointLatch == null && !stopWriter.get()) { writes.wait(100); } if (writes.isEmpty()) { releaseCheckpointWaiter(); } } writeBatch(); } } catch (Throwable e) { LOG.info("An exception was raised while performing poll writes", e); } finally { releaseCheckpointWaiter(); } }
writes.notify(); } else { writeBatch();
writes.notify(); } else { writeBatch();
writes.notify(); } else { writeBatch();
writes.notify(); } else { writeBatch(); return;
writes.notify(); } else { writeBatch(); return;
writes.notify(); } else { writeBatch(); return;