Last active
January 26, 2017 22:09
-
-
Save GuiSim/04a006e65831314f8cf7cf66843d2740 to your computer and use it in GitHub Desktop.
Revisions
-
GuiSim revised this gist
Jan 26, 2017 . 1 changed file with 9 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,14 @@ public class MyServiceClient { @Inject public MyServiceClient(@Named("service.endpoint") Prop<String> endpoint, @Named("service.readTimeout") Prop<Duration> readTimeout, HttpClient httpClient) { this.endpoint = endpoint; this.readTimeout = readTimeout; this.httpClient = httpClient; } public void getSomething() { httpClient.post(endpoint.get()).withTimeout(readTimeout.get()); } } -
GuiSim renamed this gist
Jan 26, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
GuiSim created this gist
Jan 26, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ public class MyServiceClient { @Inject public MyServiceClient(@Named("service.endpoint") Prop<String> endpoint, @Named("service.username") Prop<String> username, @Named("service.password") Prop<String> password, @Named("service.readTimeout") Prop<Duration> readTimeout) { } }