I am coming up with a design for a task based multi-thread java 1.5 system.
Tasks will generally interact with a collection to determine failed or successfull match events. Based on the outcome, another task may be queued for IO transactions to inform clients and/or store important information about the transaction.
Java provides a rich set of concurrent tools for thread pools and task management but i'm trying to come up with the best design for the tasks themselves.
For exmample: Should each task have a reference to the collection? How should the task be initialized? etc...
Does any one know of good coding examples or any references that illustrate some of the different design possiblities.