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> Queue<T> |
newConcurrentQueue(int maxSize)
Creates a new, optionally bounded,
Queue that does not require external synchronization. |
static <T> Deque<T> |
newSpScQueue()
Creates a new
Queue for single producer/single consumer. |
public static <T> Queue<T> newConcurrentQueue(int maxSize)
Queue that does not require external synchronization.maxSize - queue size. If Integer.MAX_VALUE, then creates an unbounded queue.Queue.public static <T> Deque<T> newSpScQueue()
Queue for single producer/single consumer.ArrayDeque.public static <T> LinkedBlockingQueue<T> newBlockingQueue()
BlockingQueue.BlockingQueue.Copyright © 2021 lettuce.io. All rights reserved.