Array Queue

The Centum\Queue\ArrayQueue class stores Tasks in an array and are not persistent.

Centum\Queue\ArrayQueue(
    Centum\Interfaces\Queue\TaskRunnerInterface $taskRunner
);

As this is designed for testing and development, it also providers the getters getTasks() and getBuriedTasks() so that you can inspect the contents of the queue.

If you call the consume() method when the Queue is empty, NoTasksInQueueException will be thrown. This differs from BeanstalkdQueue which will wait until a Beanstalkd job is created.