Class SlowClose
java.lang.Object
eu.rekawek.toxiproxy.model.Toxic
eu.rekawek.toxiproxy.model.toxic.SlowClose
-
Constructor Summary
ConstructorsConstructorDescriptionSlowClose(HttpClient httpClient, String path, com.google.gson.JsonObject json) SlowClose(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long delay) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.gson.JsonObjectlonggetDelay()protected ToxicTypegetType()protected voidsetAttributes(com.google.gson.JsonObject attributes) setDelay(long delay) Methods inherited from class eu.rekawek.toxiproxy.model.Toxic
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicity, toString
-
Constructor Details
-
SlowClose
public SlowClose(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long delay) throws IOException - Throws:
IOException
-
SlowClose
-
-
Method Details
-
setAttributes
protected void setAttributes(com.google.gson.JsonObject attributes) - Specified by:
setAttributesin classToxic
-
getAttributes
protected com.google.gson.JsonObject getAttributes()- Specified by:
getAttributesin classToxic
-
getType
-
getDelay
public long getDelay() -
setDelay
- Throws:
IOException
-