public class ResourceQuota extends Object
| Constructor and Description |
|---|
ResourceQuota() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ResourceQuota quota)
Add quota.
|
boolean |
equals(Object obj) |
double |
getBandwidthIn()
Get inbound bandwidth quota.
|
double |
getBandwidthOut()
Get outbound bandwidth quota.
|
boolean |
getDynamic()
Get dynamic setting.
|
double |
getMemory()
Get memory quota.
|
double |
getMsgRateIn()
Get incoming message rate quota.
|
double |
getMsgRateOut()
Get outgoing message rate quota.
|
int |
hashCode() |
boolean |
isValid()
Check if this is a valid quota definition.
|
void |
setBandwidthIn(double bandwidthIn)
Set inbound bandwidth quota.
|
void |
setBandwidthOut(double bandwidthOut)
Set outbound bandwidth quota.
|
void |
setDynamic(boolean dynamic)
Set dynamic to true/false.
|
void |
setMemory(double memory)
Set memory quota.
|
void |
setMsgRateIn(double msgRateIn)
Set incoming message rate quota.
|
void |
setMsgRateOut(double msgRateOut)
Set outgoing message rate quota.
|
void |
substract(ResourceQuota quota)
Substract quota.
|
public void setMsgRateIn(double msgRateIn)
msgRateIn - incoming messages rate quota (msg/sec)public double getMsgRateIn()
public void setMsgRateOut(double msgRateOut)
msgRateOut - outgoing messages rate quota (msg/sec)public double getMsgRateOut()
public void setBandwidthIn(double bandwidthIn)
bandwidthIn - inbound bandwidth quota (bytes/sec)public double getBandwidthIn()
public void setBandwidthOut(double bandwidthOut)
bandwidthOut - outbound bandwidth quota (bytes/sec)public double getBandwidthOut()
public void setMemory(double memory)
memory - memory quota (Mbytes)public double getMemory()
public void setDynamic(boolean dynamic)
dynamic - allow the quota to be dynamically re-calculatedpublic boolean getDynamic()
public boolean isValid()
public void add(ResourceQuota quota)
quota - ResourceQuota to addpublic void substract(ResourceQuota quota)
quota - ResourceQuota to substractCopyright © 2017–2021 Apache Software Foundation. All rights reserved.