public static final class Protos.RateLimit.Builder extends <any> implements Protos.RateLimitOrBuilder
Rate (queries per second, QPS) limit for messages from a framework to master. Strictly speaking they are the combined rate from all frameworks of the same principal.Protobuf type
mesos.RateLimit| Modifier and Type | Method and Description |
|---|---|
Protos.RateLimit.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.RateLimit |
build() |
Protos.RateLimit |
buildPartial() |
Protos.RateLimit.Builder |
clear() |
Protos.RateLimit.Builder |
clearCapacity()
Max number of outstanding messages from frameworks of this principal
allowed by master before the next message is dropped and an error is sent
back to the sender.
|
Protos.RateLimit.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.RateLimit.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.RateLimit.Builder |
clearPrincipal()
Principal of framework(s) to be throttled.
|
Protos.RateLimit.Builder |
clearQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled),
which also implies unlimited capacity.
|
Protos.RateLimit.Builder |
clone() |
long |
getCapacity()
Max number of outstanding messages from frameworks of this principal
allowed by master before the next message is dropped and an error is sent
back to the sender.
|
Protos.RateLimit |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getPrincipal()
Principal of framework(s) to be throttled.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
Principal of framework(s) to be throttled.
|
double |
getQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled),
which also implies unlimited capacity.
|
boolean |
hasCapacity()
Max number of outstanding messages from frameworks of this principal
allowed by master before the next message is dropped and an error is sent
back to the sender.
|
boolean |
hasPrincipal()
Principal of framework(s) to be throttled.
|
boolean |
hasQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled),
which also implies unlimited capacity.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.RateLimit.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.RateLimit.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.RateLimit.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.RateLimit.Builder |
setCapacity(long value)
Max number of outstanding messages from frameworks of this principal
allowed by master before the next message is dropped and an error is sent
back to the sender.
|
Protos.RateLimit.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.RateLimit.Builder |
setPrincipal(java.lang.String value)
Principal of framework(s) to be throttled.
|
Protos.RateLimit.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
Principal of framework(s) to be throttled.
|
Protos.RateLimit.Builder |
setQps(double value)
Leaving QPS unset gives it unlimited rate (i.e., not throttled),
which also implies unlimited capacity.
|
Protos.RateLimit.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.RateLimit.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.RateLimit.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.RateLimit getDefaultInstanceForType()
public Protos.RateLimit build()
public Protos.RateLimit buildPartial()
public Protos.RateLimit.Builder clone()
public Protos.RateLimit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.RateLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.RateLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.RateLimit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.RateLimit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.RateLimit.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.RateLimit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic boolean hasQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled), which also implies unlimited capacity.
optional double qps = 1;hasQps in interface Protos.RateLimitOrBuilderpublic double getQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled), which also implies unlimited capacity.
optional double qps = 1;getQps in interface Protos.RateLimitOrBuilderpublic Protos.RateLimit.Builder setQps(double value)
Leaving QPS unset gives it unlimited rate (i.e., not throttled), which also implies unlimited capacity.
optional double qps = 1;public Protos.RateLimit.Builder clearQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled), which also implies unlimited capacity.
optional double qps = 1;public boolean hasPrincipal()
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;hasPrincipal in interface Protos.RateLimitOrBuilderpublic java.lang.String getPrincipal()
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;getPrincipal in interface Protos.RateLimitOrBuilderpublic com.google.protobuf.ByteString getPrincipalBytes()
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;getPrincipalBytes in interface Protos.RateLimitOrBuilderpublic Protos.RateLimit.Builder setPrincipal(java.lang.String value)
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;public Protos.RateLimit.Builder clearPrincipal()
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;public Protos.RateLimit.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;public boolean hasCapacity()
Max number of outstanding messages from frameworks of this principal allowed by master before the next message is dropped and an error is sent back to the sender. Messages received before the capacity is reached are still going to be processed after the error is sent. If unspecified, this principal is assigned unlimited capacity. NOTE: This value is ignored if 'qps' is not set.
optional uint64 capacity = 3;hasCapacity in interface Protos.RateLimitOrBuilderpublic long getCapacity()
Max number of outstanding messages from frameworks of this principal allowed by master before the next message is dropped and an error is sent back to the sender. Messages received before the capacity is reached are still going to be processed after the error is sent. If unspecified, this principal is assigned unlimited capacity. NOTE: This value is ignored if 'qps' is not set.
optional uint64 capacity = 3;getCapacity in interface Protos.RateLimitOrBuilderpublic Protos.RateLimit.Builder setCapacity(long value)
Max number of outstanding messages from frameworks of this principal allowed by master before the next message is dropped and an error is sent back to the sender. Messages received before the capacity is reached are still going to be processed after the error is sent. If unspecified, this principal is assigned unlimited capacity. NOTE: This value is ignored if 'qps' is not set.
optional uint64 capacity = 3;public Protos.RateLimit.Builder clearCapacity()
Max number of outstanding messages from frameworks of this principal allowed by master before the next message is dropped and an error is sent back to the sender. Messages received before the capacity is reached are still going to be processed after the error is sent. If unspecified, this principal is assigned unlimited capacity. NOTE: This value is ignored if 'qps' is not set.
optional uint64 capacity = 3;public final Protos.RateLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.RateLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)