net.spy.memcached.ops
Class ArrayOperationQueueFactory

java.lang.Object
  extended by 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.
 
Method Summary
 BlockingQueue<Operation> create()
          Create an instance of a queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

create

public BlockingQueue<Operation> create()
Description copied from interface: OperationQueueFactory
Create an instance of a queue.

Specified by:
create in interface OperationQueueFactory