Add a method allowing one call to either add an operation or adjust the priority if it already exists in the queue.