@Override public void process(final T obj) { if (null == thread) { start(); } try { queue.put(obj); if (debug) { LOG.info("Current buffer size: " + queue.size()); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); } }
@Override public void process(final T obj) { if (null == thread) { start(); } try { queue.put(obj); if (debug) { LOG.info("Current buffer size: " + queue.size()); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); } }