ahc.collection
Class QueueHelper

java.lang.Object
  |
  +--ahc.collection.QueueHelper

public class QueueHelper
extends java.lang.Object

This class provides convenience methods for creating and managing queue instances.

Synchronization is provided for queues in a different way than for other collections: Rather than wrapping non-synchronized queues, thread-safety is an integral feature of queues that needs to be selected on creation. This is an optimization that takes the typical situation into account that one set of threads pushes and other threads wait on the retrieving end.

Author:
Arno Haase

Field Summary
static AccessStrategy ACCESS_TRANSPARENT
           
 
Constructor Summary
QueueHelper()
           
 
Method Summary
static Queue createQueue(boolean isThreadSafe)
           
static Queue createQueue(Store store, AccessStrategy accessStrategy, boolean isThreadSafe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_TRANSPARENT

public static final AccessStrategy ACCESS_TRANSPARENT
Constructor Detail

QueueHelper

public QueueHelper()
Method Detail

createQueue

public static Queue createQueue(boolean isThreadSafe)

createQueue

public static Queue createQueue(Store store,
                                AccessStrategy accessStrategy,
                                boolean isThreadSafe)