move RestClient#builder method on top for more visibility

This commit is contained in:
javanna 2016-07-13 15:13:29 +02:00 committed by Luca Cavanna
parent a3f9721751
commit 06caea6b80
1 changed files with 7 additions and 7 deletions

View File

@ -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.