public interface PreparedEnqueue
PreparedEnqueue is an object returned from a
prepareEnqueue method that allows you to either commit
or abort the enqueue operation.void commit()
prepareEnqueue method). Causes the provisionally
enqueued elements to appear on the queue for future dequeue
operations. Note that once a prepareEnqueue has
returned an enqueue key, the queue cannot reject the entries.void abort()
prepareEnqueue method). Causes the queue to
discard the provisionally enqueued elements.