Enum Class QueueType

java.lang.Object
java.lang.Enum<QueueType>
net.okapia.osid.torrefacto.queue.QueueType
All Implemented Interfaces:
Serializable, Comparable<QueueType>, Constable

public enum QueueType extends Enum<QueueType>

Enumeration of YACBQueue implementations.

  • Enum Constant Details

    • LINKED

      public static final QueueType LINKED
      A linked blocking queue.
    • RING

      public static final QueueType RING
      A ring-buffer blocking queue.
    • DISRUPTOR

      public static final QueueType DISRUPTOR
      A Disruptor-based queue.
  • Method Details

    • values

      public static QueueType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static QueueType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • create

      public abstract <T> YACBQueue<T> create()
      Creates a new YACBQueue with a default capacity.
      Type Parameters:
      T - the element type
      Returns:
      a new queue
    • create

      public abstract <T> YACBQueue<T> create(int size)
      Creates a new YACBQueue with the given capacity.
      Type Parameters:
      T - the element type
      Parameters:
      size - the queue capacity
      Returns:
      a new queue