Queues Under Stochastic Priority Switching