@ DoesServiceRequest public void updateMessage ( final CloudQueueMessage message , final int visibilityTimeoutInSeconds , final EnumSet < MessageUpdateFields > messageUpdateFields , QueueRequestOptions options , OperationContext opContext ) throws StorageException { Utility . assertNotNull ( "message" , message ) ; Utility . assertNotNullOrEmpty ( "messageId" , message . getId ( ) ) ; Utility . assertNotNullOrEmpty ( "popReceipt" , message . getPopReceipt ( ) ) ; Utility . assertInBounds ( "visibilityTimeoutInSeconds" , visibilityTimeoutInSeconds , 0 , QueueConstants . MAX_TIME_TO_LIVE_IN_SECONDS ) ; if ( opContext == null ) { opContext = new OperationContext ( ) ; } opContext . initialize ( ) ; options = QueueRequestOptions . populateAndApplyDefaults ( options , this . queueServiceClient ) ; ExecutionEngine . executeWithRetry ( this . queueServiceClient , this , this . updateMessageImpl ( message , visibilityTimeoutInSeconds , messageUpdateFields , options ) , options . getRetryPolicyFactory ( ) , opContext ) ; }
Updates a message in the queue using the specified request options and operation context .