microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java
public static HttpURLConnection updateMessage(final URI uri, final QueueRequestOptions queueOptions,
            final OperationContext opContext, final String popReceipt, final int visibilityTimeoutInSeconds)
            throws URISyntaxException, IOException, StorageException {

        final UriQueryBuilder builder = new UriQueryBuilder();

        builder.add(POP_RECEIPT, popReceipt);

        builder.add(VISIBILITY_TIMEOUT, Integer.toString(visibilityTimeoutInSeconds));

        final HttpURLConnection request = BaseRequest.createURLConnection(uri, queueOptions, builder, opContext);

        request.setDoOutput(true);
        request.setRequestMethod(Constants.HTTP_PUT);

        return request;
    }
public static HttpURLConnection updateMessage(final URI uri, final QueueRequestOptions queueOptions,
            final OperationContext opContext, final String popReceipt, final int visibilityTimeoutInSeconds)
            throws URISyntaxException, IOException, StorageException {

        final UriQueryBuilder builder = new UriQueryBuilder();

        builder.add(POP_RECEIPT, popReceipt);

        builder.add(VISIBILITY_TIMEOUT, Integer.toString(visibilityTimeoutInSeconds));

        final HttpURLConnection request = BaseRequest.createURLConnection(uri, queueOptions, builder, opContext);

        request.setDoOutput(true);
        request.setRequestMethod(Constants.HTTP_PUT);

        return request;
    }
Constructs a web request to update the visibility timeout of a message in
the queue. Optionally updates the message content if a message request
body is written to the output stream of the web request. The web request
should be signed with the length of the encoded message request body if
one is included, or a length of 0 if no message request body is included.

@param uri
A <code>URI</code> object that specifies the absolute URI to
the queue.
@param queueOptions
A {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout
settings for the operation. Specify <code>null</code> to use the request options specified on the
{@link CloudQueueClient}.
@param opContext
An {@link OperationContext} object that represents the context
for the current operation. This object is used to track
requests to the storage service, and to provide additional
runtime information about the operation.
@param popReceipt
A <code>String</code> that contains the pop receipt value
returned from an earlier call to {@link CloudQueueMessage#getPopReceipt} for the message to
update.
@param visibilityTimeoutInSeconds
Specifies the new visibility timeout value in seconds,
relative to server time, to make the retrieved messages
invisible until the visibility timeout expires. The value must
be larger than or equal to 0, and cannot be larger than 7
days. The visibility timeout of a message can be set to a
value later than the expiry time, which will prevent the
message from being retrieved again whether it is processed or
not.
@return An <code>HttpURLConnection</code> configured for the specified
operation.

@throws IOException
@throws URISyntaxException
If the URI is not valid.
@throws StorageException
If a storage service error occurred during the operation.