net.spy.memcached.ops
Class ArrayOperationQueueFactory
java.lang.Object
net.spy.memcached.ops.ArrayOperationQueueFactory
- All Implemented Interfaces:
- OperationQueueFactory
public class ArrayOperationQueueFactory
- extends Object
- implements OperationQueueFactory
OperationQueueFactory that uses an ArrayBlockingQueue.
Constructor Summary |
ArrayOperationQueueFactory(int cap)
Create an ArrayOperationQueueFactory that creates blocking queues with
the given capacity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayOperationQueueFactory
public ArrayOperationQueueFactory(int cap)
- Create an ArrayOperationQueueFactory that creates blocking queues with
the given capacity.
- Parameters:
cap
- maximum size of a queue produced by this factory
create
public BlockingQueue<Operation> create()
- Description copied from interface:
OperationQueueFactory
- Create an instance of a queue.
- Specified by:
create
in interface OperationQueueFactory