move RestClient#builder method on top for more visibility
This commit is contained in:
parent
a3f9721751
commit
06caea6b80
|
@ -99,6 +99,13 @@ public final class RestClient implements Closeable {
|
||||||
setHosts(hosts);
|
setHosts(hosts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a new {@link RestClientBuilder} to help with {@link RestClient} creation.
|
||||||
|
*/
|
||||||
|
public static RestClientBuilder builder(HttpHost... hosts) {
|
||||||
|
return new RestClientBuilder(hosts);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replaces the hosts that the client communicates with.
|
* Replaces the hosts that the client communicates with.
|
||||||
* @see HttpHost
|
* @see HttpHost
|
||||||
|
@ -522,13 +529,6 @@ public final class RestClient implements Closeable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a new {@link RestClientBuilder} to help with {@link RestClient} creation.
|
|
||||||
*/
|
|
||||||
public static RestClientBuilder builder(HttpHost... hosts) {
|
|
||||||
return new RestClientBuilder(hosts);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listener that allows to be notified whenever a failure happens. Useful when sniffing is enabled, so that we can sniff on failure.
|
* Listener that allows to be notified whenever a failure happens. Useful when sniffing is enabled, so that we can sniff on failure.
|
||||||
* The default implementation is a no-op.
|
* The default implementation is a no-op.
|
||||||
|
|
Loading…
Reference in New Issue