public class Slicer extends Toxic
| Constructor and Description |
|---|
Slicer(HttpClient httpClient,
String path,
com.google.gson.JsonObject json) |
Slicer(HttpClient httpClient,
String toxicListPath,
String name,
ToxicDirection stream,
long averageSize,
long delay) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gson.JsonObject |
getAttributes() |
long |
getAverageSize() |
long |
getDelay() |
long |
getSizeVariation() |
protected ToxicType |
getType() |
protected void |
setAttributes(com.google.gson.JsonObject attributes) |
Slicer |
setAverageSize(long averageSize) |
Slicer |
setDelay(long delay) |
Slicer |
setSizeVariation(long sizeVariation) |
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicitypublic Slicer(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long averageSize, long delay) throws IOException
IOExceptionpublic Slicer(HttpClient httpClient, String path, com.google.gson.JsonObject json)
protected void setAttributes(com.google.gson.JsonObject attributes)
setAttributes in class Toxicprotected com.google.gson.JsonObject getAttributes()
getAttributes in class Toxicpublic long getAverageSize()
public long getSizeVariation()
public long getDelay()
public Slicer setAverageSize(long averageSize) throws IOException
IOExceptionpublic Slicer setSizeVariation(long sizeVariation) throws IOException
IOExceptionpublic Slicer setDelay(long delay) throws IOException
IOExceptionCopyright © 2018. All rights reserved.