@ DoesServiceRequest public Iterable < CloudQueueMessage > peekMessages ( final int numberOfMessages , QueueRequestOptions options , OperationContext opContext ) throws StorageException { Utility . assertInBounds ( "numberOfMessages" , numberOfMessages , 1 , QueueConstants . MAX_NUMBER_OF_MESSAGES_TO_PEEK ) ; if ( opContext == null ) { opContext = new OperationContext ( ) ; } opContext . initialize ( ) ; options = QueueRequestOptions . populateAndApplyDefaults ( options , this . queueServiceClient ) ; return ExecutionEngine . executeWithRetry ( this . queueServiceClient , this , this . peekMessagesImpl ( numberOfMessages , options ) , options . getRetryPolicyFactory ( ) , opContext ) ; }
Peeks a set of messages from the queue using the specified request options and operation context . A peek request retrieves messages from the front of the queue without changing their visibility .