java.lang.Object
io.lettuce.core.internal.LettuceFactories
public class LettuceFactories extends Object
This class is part of the internal API and may change without further notice.
- Since:
- 4.2
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description LettuceFactories() -
Method Summary
Modifier and Type Method Description static <T> LinkedBlockingQueue<T>newBlockingQueue()Creates a newBlockingQueue.static <T> Queue<T>newConcurrentQueue(int maxSize)Creates a new, optionally bounded,Queuethat does not require external synchronization.static <T> Deque<T>newSpScQueue()Creates a newQueuefor single producer/single consumer.
-
Constructor Details
-
LettuceFactories
public LettuceFactories()
-
-
Method Details
-
newConcurrentQueue
Creates a new, optionally bounded,Queuethat does not require external synchronization.- Parameters:
maxSize- queue size. IfInteger.MAX_VALUE, then creates anunbounded queue.- Returns:
- a new, empty
Queue.
-
newSpScQueue
Creates a newQueuefor single producer/single consumer.- Returns:
- a new, empty
ArrayDeque.
-
newBlockingQueue
Creates a newBlockingQueue.- Returns:
- a new, empty
BlockingQueue.
-