public class LettuceFactories extends Object
| Constructor and Description |
|---|
LettuceFactories() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LinkedBlockingQueue<T> |
newBlockingQueue()
Creates a new
BlockingQueue. |
static <T> Collection<T> |
newConcurrentCollection()
Creates a new
Collection that does not require external synchronization optimized for adding and removing
elements. |
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 <T> Deque<T> newConcurrentQueue()
Queue that does not require external synchronization.T - LinkedBlockingDeque.public static <T> Collection<T> newConcurrentCollection()
Collection that does not require external synchronization optimized for adding and removing
elements.T - LinkedBlockingDeque.public static <T> Deque<T> newSpScQueue()
Queue for single producer/single consumer.T - ArrayDeque.public static <T> LinkedBlockingQueue<T> newBlockingQueue()
BlockingQueue.T - BlockingQueue.Copyright © 2017. All rights reserved.