FileDocCategorySizeDatePackage
ConcurrentQueueFactory.javaAPI DocExample3217Tue May 29 16:57:06 BST 2007com.sun.xml.ws.transport.tcp.connectioncache.spi.concurrent

ConcurrentQueueFactory

public final class ConcurrentQueueFactory extends Object
A factory class for creating instances of ConcurrentQueue. Note that a rather unusual syntax is needed for calling these methods: ConcurrentQueueFactory.makeXXXConcurrentQueue() This is required because the type variable V is not used in the parameters of the factory method, so the correct type cannot be inferred by the compiler.

Fields Summary
Constructors Summary
private ConcurrentQueueFactory()

Methods Summary
public static ConcurrentQueuemakeBlockingConcurrentQueue()
Create a ConcurrentQueue whose implementation uses conventional locking to protect the data structure.

	return new ConcurrentQueueBlockingImpl<V>() ;
    
public static ConcurrentQueuemakeConcurrentQueue()
Create a ConcurrentQueue that does no locking at all. For use in data structures that manage their own locking.

	return new ConcurrentQueueImpl<V>() ;