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 .