public class Latency extends Toxic
| Constructor and Description |
|---|
Latency(HttpClient httpClient,
String path,
com.google.gson.JsonObject json) |
Latency(HttpClient httpClient,
String toxicListPath,
String name,
ToxicDirection stream,
long latency) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gson.JsonObject |
getAttributes() |
long |
getJitter() |
long |
getLatency() |
protected ToxicType |
getType() |
protected void |
setAttributes(com.google.gson.JsonObject attributes) |
Latency |
setJitter(long jitter) |
Latency |
setLatency(long latency) |
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicitypublic Latency(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long latency) throws IOException
IOExceptionpublic Latency(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 getLatency()
public long getJitter()
public Latency setLatency(long latency) throws IOException
IOExceptionpublic Latency setJitter(long jitter) throws IOException
IOExceptionCopyright © 2018. All rights reserved.