Tabnine Logo
LocationMode
Code IndexAdd Tabnine to your IDE (free)

How to use
LocationMode
in
com.microsoft.azure.storage

Best Java code snippets using com.microsoft.azure.storage.LocationMode (Showing top 2 results out of 315)

origin: com.microsoft.azure/azure-storage

/**
 * Sets the {@link LocationMode} for this request.
 * <p>
 * The default {@link LocationMode} is set in the client and is by default {@link LocationMode#PRIMARY_ONLY}. You
 * can change the {@link LocationMode} on this request by setting this property. You can also change the value on
 * the {@link ServiceClient#getDefaultRequestOptions()} object so that all subsequent requests made via the service
 * client will use that {@link LocationMode}.
 * 
 * @param locationMode
 *            the locationMode to set
 */
@Override
public final void setLocationMode(final LocationMode locationMode) {
  if (locationMode != null && !locationMode.equals(LocationMode.PRIMARY_ONLY)) {
    throw new UnsupportedOperationException(SR.PRIMARY_ONLY_COMMAND);
  }
  super.setLocationMode(locationMode);
}
origin: Azure/azure-storage-android

  /**
   * Sets the {@link LocationMode} for this request.
   * <p>
   * The default {@link LocationMode} is set in the client and is by default {@link LocationMode#PRIMARY_ONLY}. You
   * can change the {@link LocationMode} on this request by setting this property. You can also change the value on
   * the {@link ServiceClient#getDefaultRequestOptions()} object so that all subsequent requests made via the service
   * client will use that {@link LocationMode}.
   * 
   * @param locationMode
   *            the locationMode to set
   */
  @Override
  public final void setLocationMode(final LocationMode locationMode) {
    if (locationMode != null && !locationMode.equals(LocationMode.PRIMARY_ONLY)) {
      throw new UnsupportedOperationException(SR.PRIMARY_ONLY_COMMAND);
    }

    super.setLocationMode(locationMode);
  }
}
com.microsoft.azure.storageLocationMode

Javadoc

Specifies the location mode used to decide which location the request should be sent to.

Most used methods

  • equals

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • JList (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now