org.openstreetmap.atlas.utilities.runtime.OpenPipeBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.utilities.runtime;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
/**
* An unbounded {@link PipeBuffer} (still limited at Integer.MAX_VALUE) using an underlying
* {@link LinkedBlockingQueue}
*
* @author matthieun
*/
public class OpenPipeBuffer extends PipeBuffer
{
@Override
protected BlockingQueue createBlockingQueue()
{
// Unbounded, dies at Integer.MAX_VALUE
return new LinkedBlockingQueue<>();
}
}