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