get all Messages from this queue.
Parameters: wait - a boolean value. If this parameter isset to true the queue will block until an element isavailable. If the parameter is set to false the queue willreturn null in case it is empty.
get the next Message from this queue. which particular event is
selected depends on the underlying implementation.
Parameters: wait - a boolean value. If this parameter isset to true the queue will block until an element isavailable. If the parameter is set to false the queue willreturn null in case it is empty. exception: InterruptedException -
get up to n events from this queue.
Parameters: n - number of requested messages Parameters: wait - a boolean value. If this parameter isset to true the queue will block until an element isavailable. If the parameter is set to false the queue willreturn null in case it is empty.