public AmqpMessage receiveNoWait() throws Exception {
  checkClosed();
  return prefetch.poll();
}

public AmqpMessage receiveNoWait ( ) throws Exception { checkClosed ( ) ; return prefetch . poll ( ) ; }
if a message is already available in this receiver ' s prefetch buffer then it is returned immediately otherwise this methods return null without waiting .
