base/common/src/main/com/thesett/common/util/queues/Queues.java
public static <E> Queue<E> getTransactionalQueue(java.util.Queue<E> queue)
    {
        return new WrapperQueue<E>(queue, new LinkedList<E>(), true, false, false);
    }
public static <E> Queue<E> getTransactionalQueue(java.util.Queue<E> queue)
    {
        return new WrapperQueue<E>(queue, new LinkedList<E>(), true, false, false);
    }
public static < E > Queue < E > getTransactionalQueue ( java . util . Queue < E > queue ) { return new WrapperQueue < E > ( queue , new LinkedList < E > ( ) , true , false , false ) ; }
Provides a transactional queue, that delays all queue manipulation operations until the transaction is committed,
or erases them if it is rolled back.

@param  queue The queue to make transactional.
@param  <E>   The type of queue element.

@return A transactional queue.
Provides a transactional queue that delays all queue manipulation operations until the transaction is committed or erases them if it is rolled back .