@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) { x.printStackTrace(); } }//while } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) { x.printStackTrace(); } }//while } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) { x.printStackTrace(); } }//while } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry != null) { entry.flush(); } } catch (InterruptedException x) { Thread.interrupted(); } catch (Exception x) { x.printStackTrace(); } }//while } }
@Override public void run() { while (true) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry != null) { entry.flush(); } } catch (InterruptedException x) { // Ignore the attempt to interrupt the thread. } catch (Exception x) { x.printStackTrace(); } } } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) { x.printStackTrace(); } }//while } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) { x.printStackTrace(); } }//while } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); } catch (InterruptedException x) { // Ignore the attempt to interrupt the thread. } catch (Exception x) { x.printStackTrace(); } } } }
@Override public void run() { while (true) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry != null) { entry.flush(); } } catch (InterruptedException x) { // Ignore the attempt to interrupt the thread. } catch (Exception x) { x.printStackTrace(); } } } }
@Override public void run() { while (run) { try { LogEntry entry = queue.poll(LOGGER_SLEEP_TIME, TimeUnit.MILLISECONDS); if (entry!=null) entry.flush(); }catch (InterruptedException x) { Thread.interrupted(); }catch (Exception x) { x.printStackTrace(); } }//while } }