Add migration guide note about transport client changes to

settings/environment
This commit is contained in:
Ryan Ernst 2015-09-08 10:22:46 -07:00
parent 2e63290548
commit 86ffa38ec7
1 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,17 @@ Settings settings = Settings.settingsBuilder()
Client client = TransportClient.builder().settings(settings).build();
--------------------------------------------------
The transport client also no longer supports loading settings from config files.
If you have have a config file, you can load into settings yourself before
consturcting the transport client:
[source,java]
--------------------------------------------------
Settings settings = Settings.settingsBuilder()
.loadFromPath(pathToYourSettingsFile).build();
Client client = TransportClient.builder().settings(settings).build();
--------------------------------------------------
==== Automatically thread client listeners
Previously, the user had to set request listener threads to `true` when on the