public static interface Protos.RateLimitOrBuilder
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
boolean hasQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled), which also implies unlimited capacity.
optional double qps = 1;
double getQps()
Leaving QPS unset gives it unlimited rate (i.e., not throttled), which also implies unlimited capacity.
optional double qps = 1;
boolean hasPrincipal()
Principal of framework(s) to be throttled. Should match FrameworkInfo.principal and Credential.principal (if using authentication).
required string principal = 2;
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;
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;
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;
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;