@Override public void close() throws IOException { queues.values().forEach(queue -> { try { queue.close(); } catch (final IOException e) { throw new RuntimeException(e.getCause()); } }); } }
@Override public void close() throws IOException { queues.values().forEach(queue -> { try { queue.close(); } catch (final IOException e) { throw new RuntimeException(e.getCause()); } }); } }