public class Bandwidth extends Toxic
| Constructor and Description |
|---|
Bandwidth(HttpClient httpClient,
String path,
com.google.gson.JsonObject json) |
Bandwidth(HttpClient httpClient,
String toxicListPath,
String name,
ToxicDirection stream,
long rate) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gson.JsonObject |
getAttributes() |
long |
getRate() |
protected ToxicType |
getType() |
protected void |
setAttributes(com.google.gson.JsonObject attributes) |
Bandwidth |
setRate(long rate) |
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicitypublic Bandwidth(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long rate) throws IOException
IOExceptionpublic Bandwidth(HttpClient httpClient, String path, com.google.gson.JsonObject json)
protected void setAttributes(com.google.gson.JsonObject attributes)
setAttributes in class Toxicprotected com.google.gson.JsonObject getAttributes()
getAttributes in class Toxicpublic long getRate()
public Bandwidth setRate(long rate) throws IOException
IOExceptionCopyright © 2018. All rights reserved.