public static class ComputedQuotaValue.ComputedQuota extends Object implements org.apache.kafka.common.protocol.Message
Modifier and Type | Field and Description |
---|---|
static short |
HIGHEST_SUPPORTED_VERSION |
static short |
LOWEST_SUPPORTED_VERSION |
static org.apache.kafka.common.protocol.types.Schema |
SCHEMA_0 |
static org.apache.kafka.common.protocol.types.Schema[] |
SCHEMAS |
Constructor and Description |
---|
ComputedQuota() |
ComputedQuota(org.apache.kafka.common.protocol.Readable _readable,
short _version,
org.apache.kafka.common.protocol.MessageContext _context) |
Modifier and Type | Method and Description |
---|---|
void |
addSize(org.apache.kafka.common.protocol.MessageSizeAccumulator _size,
org.apache.kafka.common.protocol.ObjectSerializationCache _cache,
short _version,
org.apache.kafka.common.protocol.MessageContext _context) |
ComputedQuotaValue.ComputedQuota |
duplicate() |
boolean |
equals(Object obj) |
int |
hashCode() |
short |
highestSupportedVersion() |
short |
lowestSupportedVersion() |
double |
quota() |
String |
quotaType() |
void |
read(org.apache.kafka.common.protocol.Readable _readable,
short _version,
org.apache.kafka.common.protocol.MessageContext _context) |
ComputedQuotaValue.ComputedQuota |
setQuota(double v) |
ComputedQuotaValue.ComputedQuota |
setQuotaType(String v) |
ComputedQuotaValue.ComputedQuota |
setThrottled(boolean v) |
ComputedQuotaValue.ComputedQuota |
setUsage(double v) |
boolean |
throttled() |
String |
toString() |
List<org.apache.kafka.common.protocol.types.RawTaggedField> |
unknownTaggedFields() |
double |
usage() |
void |
write(org.apache.kafka.common.protocol.Writable _writable,
org.apache.kafka.common.protocol.ObjectSerializationCache _cache,
short _version,
org.apache.kafka.common.protocol.MessageContext _context) |
public static final org.apache.kafka.common.protocol.types.Schema SCHEMA_0
public static final org.apache.kafka.common.protocol.types.Schema[] SCHEMAS
public static final short LOWEST_SUPPORTED_VERSION
public static final short HIGHEST_SUPPORTED_VERSION
public ComputedQuota(org.apache.kafka.common.protocol.Readable _readable, short _version, org.apache.kafka.common.protocol.MessageContext _context)
public ComputedQuota()
public short lowestSupportedVersion()
lowestSupportedVersion
in interface org.apache.kafka.common.protocol.Message
public short highestSupportedVersion()
highestSupportedVersion
in interface org.apache.kafka.common.protocol.Message
public void read(org.apache.kafka.common.protocol.Readable _readable, short _version, org.apache.kafka.common.protocol.MessageContext _context)
read
in interface org.apache.kafka.common.protocol.Message
public void write(org.apache.kafka.common.protocol.Writable _writable, org.apache.kafka.common.protocol.ObjectSerializationCache _cache, short _version, org.apache.kafka.common.protocol.MessageContext _context)
write
in interface org.apache.kafka.common.protocol.Message
public void addSize(org.apache.kafka.common.protocol.MessageSizeAccumulator _size, org.apache.kafka.common.protocol.ObjectSerializationCache _cache, short _version, org.apache.kafka.common.protocol.MessageContext _context)
addSize
in interface org.apache.kafka.common.protocol.Message
public ComputedQuotaValue.ComputedQuota duplicate()
duplicate
in interface org.apache.kafka.common.protocol.Message
public String quotaType()
public double quota()
public double usage()
public boolean throttled()
public List<org.apache.kafka.common.protocol.types.RawTaggedField> unknownTaggedFields()
unknownTaggedFields
in interface org.apache.kafka.common.protocol.Message
public ComputedQuotaValue.ComputedQuota setQuotaType(String v)
public ComputedQuotaValue.ComputedQuota setQuota(double v)
public ComputedQuotaValue.ComputedQuota setUsage(double v)
public ComputedQuotaValue.ComputedQuota setThrottled(boolean v)