Modifying to make LineUpQueue compatible with Queue interface of Java.
Actually it implements the BlockingQueue<QueueMessage> interface.