List of usage examples for java.util.concurrent ConcurrentLinkedQueue forEach
public void forEach(Consumer<? super E> action)
From source file:com.github.cambierr.jcollector.sender.OpenTsdbHttp.java
private JSONArray toJson(ConcurrentLinkedQueue<Metric> _metrics) { final JSONArray output = new JSONArray(); _metrics.forEach((Metric t) -> { toJson(t, output);/*from w w w . ja v a2 s.co m*/ }); return output; }