public enum ToxicType extends Enum<ToxicType>
| Enum Constant and Description |
|---|
BANDWIDTH |
LATENCY |
LIMIT_DATA |
SLICER |
SLOW_CLOSE |
TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static Toxic |
createToxic(HttpClient httpClient,
String path,
com.google.gson.JsonObject json) |
protected abstract Toxic |
doCreateToxic(HttpClient httpClient,
String path,
com.google.gson.JsonObject json) |
static ToxicType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ToxicType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToxicType LATENCY
public static final ToxicType BANDWIDTH
public static final ToxicType SLOW_CLOSE
public static final ToxicType TIMEOUT
public static final ToxicType SLICER
public static final ToxicType LIMIT_DATA
public static ToxicType[] values()
for (ToxicType c : ToxicType.values()) System.out.println(c);
public static ToxicType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract Toxic doCreateToxic(HttpClient httpClient, String path, com.google.gson.JsonObject json)
public static Toxic createToxic(HttpClient httpClient, String path, com.google.gson.JsonObject json)
Copyright © 2018. All rights reserved.