[
https://issues.apache.org/jira/browse/DROIDS-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995043#comment-12995043
]
Bertil Chapuis commented on DROIDS-56:
--------------------------------------
May this validation logic be merged with Filters?
In my personal implementation of Droids, a Worker execute all the tasks allowed
by a filter and Tasks can as well only be added to the queue if the filter
allows it. Filters are using composition, in consequence it is possible to
build filters like:
Filter aFilter = AndFilter(
OrFilter(
new RegexFilter("http://www.site-a.com/*"),
new RegexFilter("http://www.site-b.com/*"),
...
),
CustomFilter()
);
filter.isAllowed(task);
> Change the TaskQueue interface to java.util.Queue
> -------------------------------------------------
>
> Key: DROIDS-56
> URL: https://issues.apache.org/jira/browse/DROIDS-56
> Project: Droids
> Issue Type: Improvement
> Components: core
> Affects Versions: 0.0.1
> Reporter: Mingfai Ma
> Attachments: Queue.diff, droids-56-v2.diff, droids-56.diff,
> taskQueue-to-queue.diff
>
>
> 1. any code that depends on the queue should depend on java.util.Queue<T>
> rather than TaskQueue.
> 2. either remove the TaskQueue or make it extends java.util.Queue
> - it means SimpleTaskQueue should extends a Queue implementation (or
> implement all method of a Queue)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira