List of usage examples for java.util.concurrent ConcurrentLinkedQueue notifyAll
@HotSpotIntrinsicCandidate public final native void notifyAll();
From source file:net.jmhertlein.mcanalytics.plugin.daemon.ClientMonitor.java
public synchronized void close() throws IOException { if (!shutdown) { shutdown = true;// ww w.j a va 2 s .c om out.close(); in.close(); client.close(); ConcurrentLinkedQueue<JSONObject> writeQueue = this.dispatcher.getWriteQueue(); synchronized (writeQueue) { writeQueue.notifyAll(); } //System.out.println("Client: All closed!"); } }