Package eu.rekawek.toxiproxy.model.toxic
Class SlowClose
- java.lang.Object
-
- eu.rekawek.toxiproxy.model.Toxic
-
- eu.rekawek.toxiproxy.model.toxic.SlowClose
-
public class SlowClose extends Toxic
-
-
Constructor Summary
Constructors Constructor Description SlowClose(HttpClient httpClient, String path, com.google.gson.JsonObject json)SlowClose(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gson.JsonObjectgetAttributes()longgetDelay()protected ToxicTypegetType()protected voidsetAttributes(com.google.gson.JsonObject attributes)SlowClosesetDelay(long delay)-
Methods inherited from class eu.rekawek.toxiproxy.model.Toxic
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicity, toString
-
-
-
-
Constructor Detail
-
SlowClose
public SlowClose(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long delay) throws IOException
- Throws:
IOException
-
SlowClose
public SlowClose(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
-
getDelay
public long getDelay()
-
setDelay
public SlowClose setDelay(long delay) throws IOException
- Throws:
IOException
-
-