Class 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 Detail

      • LettuceFactories

        public LettuceFactories()
    • Method Detail

      • newConcurrentQueue

        public static <T> Queue<T> newConcurrentQueue​(int maxSize)
        Creates a new, optionally bounded, Queue that does not require external synchronization.
        Parameters:
        maxSize - queue size. If Integer.MAX_VALUE, then creates an unbounded queue.
        Returns:
        a new, empty Queue.
      • newSpScQueue

        public static <T> Deque<T> newSpScQueue()
        Creates a new Queue for single producer/single consumer.
        Returns:
        a new, empty ArrayDeque.