Class QueueListener.Adapter<T>

  • Type Parameters:
    T - Type of object stored in the queue.
    All Implemented Interfaces:
    QueueListener<T>
    Enclosing interface:
    QueueListener<T>

    @Deprecated
    public static final class QueueListener.Adapter<T>
    extends java.lang.Object
    implements QueueListener<T>
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    QueueListener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • itemEnqueued

        public void itemEnqueued​(Queue<T> queue,
                                 T item)
        Deprecated.
        Description copied from interface: QueueListener
        Called when an item has been inserted into the tail of a queue.
        Specified by:
        itemEnqueued in interface QueueListener<T>
        Parameters:
        queue - The queue that has been modified.
        item - The item that was just added to the queue.
      • itemDequeued

        public void itemDequeued​(Queue<T> queue,
                                 T item)
        Deprecated.
        Description copied from interface: QueueListener
        Called when an item has been removed from the head of a queue.
        Specified by:
        itemDequeued in interface QueueListener<T>
        Parameters:
        queue - The queue in question.
        item - The item that was just removed from the head of the queue.
      • queueCleared

        public void queueCleared​(Queue<T> queue)
        Deprecated.
        Description copied from interface: QueueListener
        Called when a queue has been cleared.
        Specified by:
        queueCleared in interface QueueListener<T>
        Parameters:
        queue - The newly cleared queue object.
      • comparatorChanged

        public void comparatorChanged​(Queue<T> queue,
                                      java.util.Comparator<T> previousComparator)
        Deprecated.
        Description copied from interface: QueueListener
        Called when a queue's comparator has changed.
        Specified by:
        comparatorChanged in interface QueueListener<T>
        Parameters:
        queue - The queue that changed.
        previousComparator - Previous value of the queue's comparator (if any).