Class OnlineRequestSettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.OnlineRequestSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OnlineRequestSettings>
public final class OnlineRequestSettings
extends Object
implements com.azure.json.JsonSerializable<OnlineRequestSettings>
Online deployment scoring requests configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OnlineRequestSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OnlineRequestSettings from the JsonReader.Get the maxConcurrentRequestsPerInstance property: The number of maximum concurrent requests per node allowed per deployment.Get the maxQueueWait property: (Deprecated for Managed Online Endpoints) The maximum amount of time a request will stay in the queue in ISO 8601 format.Get the requestTimeout property: The scoring timeout in ISO 8601 format.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxConcurrentRequestsPerInstance(Integer maxConcurrentRequestsPerInstance) Set the maxConcurrentRequestsPerInstance property: The number of maximum concurrent requests per node allowed per deployment.withMaxQueueWait(Duration maxQueueWait) Set the maxQueueWait property: (Deprecated for Managed Online Endpoints) The maximum amount of time a request will stay in the queue in ISO 8601 format.withRequestTimeout(Duration requestTimeout) Set the requestTimeout property: The scoring timeout in ISO 8601 format.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OnlineRequestSettings
public OnlineRequestSettings()Creates an instance of OnlineRequestSettings class.
-
-
Method Details
-
maxQueueWait
Get the maxQueueWait property: (Deprecated for Managed Online Endpoints) The maximum amount of time a request will stay in the queue in ISO 8601 format. Defaults to 500ms. (Now increase `request_timeout_ms` to account for any networking/queue delays).- Returns:
- the maxQueueWait value.
-
withMaxQueueWait
Set the maxQueueWait property: (Deprecated for Managed Online Endpoints) The maximum amount of time a request will stay in the queue in ISO 8601 format. Defaults to 500ms. (Now increase `request_timeout_ms` to account for any networking/queue delays).- Parameters:
maxQueueWait- the maxQueueWait value to set.- Returns:
- the OnlineRequestSettings object itself.
-
requestTimeout
Get the requestTimeout property: The scoring timeout in ISO 8601 format. Defaults to 5000ms.- Returns:
- the requestTimeout value.
-
withRequestTimeout
Set the requestTimeout property: The scoring timeout in ISO 8601 format. Defaults to 5000ms.- Parameters:
requestTimeout- the requestTimeout value to set.- Returns:
- the OnlineRequestSettings object itself.
-
maxConcurrentRequestsPerInstance
Get the maxConcurrentRequestsPerInstance property: The number of maximum concurrent requests per node allowed per deployment. Defaults to 1.- Returns:
- the maxConcurrentRequestsPerInstance value.
-
withMaxConcurrentRequestsPerInstance
public OnlineRequestSettings withMaxConcurrentRequestsPerInstance(Integer maxConcurrentRequestsPerInstance) Set the maxConcurrentRequestsPerInstance property: The number of maximum concurrent requests per node allowed per deployment. Defaults to 1.- Parameters:
maxConcurrentRequestsPerInstance- the maxConcurrentRequestsPerInstance value to set.- Returns:
- the OnlineRequestSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OnlineRequestSettings>- Throws:
IOException
-
fromJson
public static OnlineRequestSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OnlineRequestSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OnlineRequestSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the OnlineRequestSettings.
-