![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.windowsazure.storage.queue.QueueRequestOptions Maven / Gradle / Ivy
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.microsoft.windowsazure.storage.queue;
import com.microsoft.windowsazure.storage.RequestOptions;
import com.microsoft.windowsazure.storage.core.Utility;
/**
* Represents a set of options that may be specified on a queue request.
*/
public final class QueueRequestOptions extends RequestOptions {
/**
* Initializes a new instance of the QueueRequestOptions class.
*/
public QueueRequestOptions() {
// no op
}
/**
* Initializes a new instance of the QueueRequestOptions class as a copy of
* another QueueRequestOptions instance.
*
* @param other
* The {@link QueueRequestOptions} object to copy the values
* from.
*/
public QueueRequestOptions(final QueueRequestOptions other) {
super(other);
}
/**
* Populates the default timeout and retry policy from client if they are
* not set.
*
* @param options
* The input options to copy from when applying defaults
* @param client
* The {@link CloudQueueClient} service client to populate the
* default values from.
*/
protected static final QueueRequestOptions applyDefaults(QueueRequestOptions options, final CloudQueueClient client) {
QueueRequestOptions modifiedOptions = new QueueRequestOptions(options);
return QueueRequestOptions.applyDefaultsInternal(modifiedOptions, client);
}
protected static final QueueRequestOptions applyDefaultsInternal(QueueRequestOptions modifiedOptions,
CloudQueueClient client) {
Utility.assertNotNull("modifiedOptions", modifiedOptions);
RequestOptions.applyBaseDefaultsInternal(modifiedOptions, client);
return modifiedOptions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy