[concurrency-interest] Transactional Queue

Jean Morissette jean.morissette666@videotron.ca
Tue, 09 Nov 2004 15:30:48 -0500


Hi,
I would like to ear you about the possibility to write a 
TransactionalQueue that support methods like:

   TransactionID prepareEnqueue(Object[] objs)
   commitEnqueue(TransactionID txId)
   abortEnqueue(TransactionID txId)

By exemple, these methodes could be used to perform multi-queue 
transactional enqueue operations, with an "all-or-nothing" strategy for 
enqueueing events on multiple queues.

We could maybe implements that by wrapping a Queue/BlockingQueue, but 
the wrapping queue capacity seems an issue here.

Thanks
Jean