public class SocketDelayTask implements AdminTask {
@Override
public ResponseDefinition execute(Admin admin, Request request) {
RequestDelaySpec delaySpec = Json.read(request.getBodyAsString(), RequestDelaySpec.class);
admin.addSocketAcceptDelay(delaySpec);
return ResponseDefinition.ok();
}