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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCESS_TRANSPARENT
public static final AccessStrategy ACCESS_TRANSPARENT
QueueHelper
public QueueHelper()
createQueue
public static Queue createQueue(boolean isThreadSafe)
createQueue
public static Queue createQueue(Store store,
AccessStrategy accessStrategy,
boolean isThreadSafe)