public final class AutoscalingPolicyQueueBasedScaling extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
AutoscalingPolicyQueueBasedScaling()  | 
| Modifier and Type | Method and Description | 
|---|---|
AutoscalingPolicyQueueBasedScaling | 
clone()  | 
Double | 
getAcceptableBacklogPerInstance()
Scaling based on the average number of tasks in the queue per each active instance. 
 | 
AutoscalingPolicyQueueBasedScalingCloudPubSub | 
getCloudPubSub()
Configuration for Cloud Pub/Sub subscription queue. 
 | 
Double | 
getSingleWorkerThroughputPerSec()
The scaling algorithm will also calculate throughput estimates on its own; if you explicitly
 provide this value, the autoscaler will take into account your value as well as automatic
 estimates when deciding how to scale. 
 | 
AutoscalingPolicyQueueBasedScaling | 
set(String fieldName,
   Object value)  | 
AutoscalingPolicyQueueBasedScaling | 
setAcceptableBacklogPerInstance(Double acceptableBacklogPerInstance)
Scaling based on the average number of tasks in the queue per each active instance. 
 | 
AutoscalingPolicyQueueBasedScaling | 
setCloudPubSub(AutoscalingPolicyQueueBasedScalingCloudPubSub cloudPubSub)
Configuration for Cloud Pub/Sub subscription queue. 
 | 
AutoscalingPolicyQueueBasedScaling | 
setSingleWorkerThroughputPerSec(Double singleWorkerThroughputPerSec)
The scaling algorithm will also calculate throughput estimates on its own; if you explicitly
 provide this value, the autoscaler will take into account your value as well as automatic
 estimates when deciding how to scale. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Double getAcceptableBacklogPerInstance()
null for nonepublic AutoscalingPolicyQueueBasedScaling setAcceptableBacklogPerInstance(Double acceptableBacklogPerInstance)
acceptableBacklogPerInstance - acceptableBacklogPerInstance or null for nonepublic AutoscalingPolicyQueueBasedScalingCloudPubSub getCloudPubSub()
null for nonepublic AutoscalingPolicyQueueBasedScaling setCloudPubSub(AutoscalingPolicyQueueBasedScalingCloudPubSub cloudPubSub)
cloudPubSub - cloudPubSub or null for nonepublic Double getSingleWorkerThroughputPerSec()
null for nonepublic AutoscalingPolicyQueueBasedScaling setSingleWorkerThroughputPerSec(Double singleWorkerThroughputPerSec)
singleWorkerThroughputPerSec - singleWorkerThroughputPerSec or null for nonepublic AutoscalingPolicyQueueBasedScaling set(String fieldName, Object value)
set in class GenericJsonpublic AutoscalingPolicyQueueBasedScaling clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.