Package eu.rekawek.toxiproxy.model.toxic
Class Latency
- java.lang.Object
-
- eu.rekawek.toxiproxy.model.Toxic
-
- eu.rekawek.toxiproxy.model.toxic.Latency
-
public class Latency extends Toxic
-
-
Constructor Summary
Constructors Constructor Description Latency(HttpClient httpClient, String path, com.google.gson.JsonObject json)Latency(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long latency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gson.JsonObjectgetAttributes()longgetJitter()longgetLatency()protected ToxicTypegetType()protected voidsetAttributes(com.google.gson.JsonObject attributes)LatencysetJitter(long jitter)LatencysetLatency(long latency)-
Methods inherited from class eu.rekawek.toxiproxy.model.Toxic
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicity, toString
-
-
-
-
Constructor Detail
-
Latency
public Latency(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long latency) throws IOException
- Throws:
IOException
-
Latency
public Latency(HttpClient httpClient, String path, com.google.gson.JsonObject json)
-
-
Method Detail
-
setAttributes
protected void setAttributes(com.google.gson.JsonObject attributes)
- Specified by:
setAttributesin classToxic
-
getAttributes
protected com.google.gson.JsonObject getAttributes()
- Specified by:
getAttributesin classToxic
-
getLatency
public long getLatency()
-
getJitter
public long getJitter()
-
setLatency
public Latency setLatency(long latency) throws IOException
- Throws:
IOException
-
setJitter
public Latency setJitter(long jitter) throws IOException
- Throws:
IOException
-
-