Hello all,

I needed a queue to hold certain information to be processed at a later time by a different process. So, I started with:

MyQueue Class:
        List of QueueItems

MyQueueItem Class:
        Data for the Item
        Timestamp
        Processed flag

Then I noticed that really MyQueueItem Class is also in a way a Queue. One has the ability to get to the data since it is all stored in the same SQL table. Is ommiting the MyQueue class a bad idea? Would it be better to just have that class, and to have to 'push' items in and out of the queue, so that there is a way to access them directly through OO instead on haven SQL queries to retrieve them?

I guess I'm still thinkin in tables...

Thanks.

Daniel.



Reply via email to