AsyncHttpClient: added setMaxRetries method;
fixed a type;