All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstreetmap.atlas.utilities.runtime.OpenPipeBuffer Maven / Gradle / Ivy

There is a newer version: 7.0.8
Show newest version
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<>();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy