How do i add an elemnt with a given priority into a sorted priority queue?
Help!!!
:confused: :eek:
Printable View
How do i add an elemnt with a given priority into a sorted priority queue?
Help!!!
:confused: :eek:
Hmmm... Didn't know there were priority queues. After checking, however, it looks like to solve your problem, you need to issue a send command with the appropriate arguments. There are four different methods called send and two of them allow you to assign a priority.
I'd try this one:
send(Message message, int deliveryMode, int priority, long timeToLive)
cudabean