Code example for ConcurrentLinkedQueue

0
 
import java.util.concurrent.ConcurrentLinkedQueue; 
 
public class LogStore { 
 
  private final ConcurrentLinkedQueue<IOSLog> logs = new ConcurrentLinkedQueue<IOSLog>(); 
 
 
  public void log(IOSLog log) { 
    logs.add(log); 
  } 
}