de.esprit.common.concurrent

## Class DefaultQueueHandler<T>

- java.lang.Object
- - de.esprit.common.concurrent.DefaultQueueHandler<T>

- All Implemented Interfaces:
    QueueHandler<T>

      public class DefaultQueueHandler<T>
      extends java.lang.Object
      implements QueueHandler<T>

  This class just collects the events to be handled.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultQueueHandler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<T>` | `getCollectedItems()`
    `void` | `handle(T item)`
    `int` | `indexOf(T item)`
    `void` | `setProcessingDelay(long delayMillis)` Slows down the queue processing task.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultQueueHandler

          public DefaultQueueHandler()

  - ### Method Detail

    - #### handle

          public void handle(T item)

      Specified by:
        `handle` in interface `QueueHandler<T>`

    - #### getCollectedItems

          public java.util.List<T> getCollectedItems()

    - #### indexOf

          public int indexOf(T item)

    - #### setProcessingDelay

          public void setProcessingDelay(long delayMillis)

      Slows down the queue processing task. This is for testing purposes only!

Copyright © 2014 EsprIT-Systems. All Rights Reserved.