Class Timeout
java.lang.Object
eu.rekawek.toxiproxy.model.Toxic
eu.rekawek.toxiproxy.model.toxic.Timeout
-
Constructor Summary
ConstructorsConstructorDescriptionTimeout(HttpClient httpClient, String path, com.google.gson.JsonObject json) Timeout(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long timeout) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.gson.JsonObjectlongprotected ToxicTypegetType()protected voidsetAttributes(com.google.gson.JsonObject attributes) setTimeout(long timeout) Methods inherited from class eu.rekawek.toxiproxy.model.Toxic
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicity, toString
-
Constructor Details
-
Timeout
public Timeout(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long timeout) throws IOException - Throws:
IOException
-
Timeout
-
-
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
-
getTimeout
public long getTimeout() -
setTimeout
- Throws:
IOException
-