public class LettuceFactories extends Object
| Constructor and Description |
|---|
LettuceFactories() |
| Modifier and Type | Method and Description |
|---|---|
static <E> BlockingQueue<E> |
newBlockingQueue()
Creates a new
BlockingQueue. |
static <T> Deque<T> |
newConcurrentQueue()
Creates a new
Queue that does not require external synchronization. |
static <T> Deque<T> |
newSpScQueue()
Creates a new
Queue for single producer/single consumer. |
public static final <T> Deque<T> newConcurrentQueue()
Queue that does not require external synchronization.T - ConcurrentLinkedDeque.public static final <T> Deque<T> newSpScQueue()
Queue for single producer/single consumer.T - ArrayDeque.public static <E> BlockingQueue<E> newBlockingQueue()
BlockingQueue.E - BlockingQueue.Copyright © 2016. All rights reserved.