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

net.anotheria.anoprise.queue.BoundedFifoQueueFactory Maven / Gradle / Ivy

Go to download

Collection of utils for different enterprise class projects. Among other stuff contains Caches, Mocking, DualCrud, MetaFactory and SessionDistributorService. Visit https://opensource.anotheria.net for details.

There is a newer version: 4.0.0
Show newest version
package net.anotheria.anoprise.queue;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * Factory to create bounded FIFO queue.
 * @author dmeltelin
 *
 * @param 
 */
public class BoundedFifoQueueFactory implements EnterpriseQueueFactory{

	@Override
	public EnterpriseQueue createQueue(int capacity) {
		ArrayBlockingQueue delegate = new ArrayBlockingQueue(capacity);
		return new EnterpriseQueueAdapter(delegate, capacity);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy