org.apache.droids.impl
Class SimpleTaskQueueWithHistory<T extends Task>

java.lang.Object
  extended by org.apache.droids.impl.SimpleTaskQueue<T>
      extended by org.apache.droids.impl.SimpleTaskQueueWithHistory<T>
All Implemented Interfaces:
TaskQueue<T>, TaskValidator<T>

public class SimpleTaskQueueWithHistory<T extends Task>
extends SimpleTaskQueue<T>

Extend the task queue to ignore any tasks we have already seen


Constructor Summary
SimpleTaskQueueWithHistory()
          Simple queue constructor.
 
Method Summary
 void clear()
           
 void merge(T task)
          Add a Task to the queue...
 
Methods inherited from class org.apache.droids.impl.SimpleTaskQueue
getMaxSize, getSize, getTask, getTaskValidator, hasNext, merge, next, peek, setMaxSize, setTaskValidator, validateTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTaskQueueWithHistory

public SimpleTaskQueueWithHistory()
Simple queue constructor.

Method Detail

merge

public void merge(T task)
           throws InvalidTaskException
Description copied from interface: TaskQueue
Add a Task to the queue...

Specified by:
merge in interface TaskQueue<T extends Task>
Overrides:
merge in class SimpleTaskQueue<T extends Task>
Parameters:
task - task to add to the Queue
Throws:
InvalidTaskException

clear

public void clear()
Overrides:
clear in class SimpleTaskQueue<T extends Task>


Copyright © 2007-2009. All Rights Reserved.