Last active
June 10, 2016 19:31
-
-
Save dgomesbr/d4e65b6a10341f661c736b1e73b70a3c to your computer and use it in GitHub Desktop.
This file contains 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 characters
public SubscriptionClient createSubscriptionClient() { | |
//default sem timeouts | |
// PREFERRED_API_URL => http://subscription.bemobi.com.br/sc/ | |
// pode ser sobrescrita pelo pela propriedade de ambiente -Dcom.bemobi.subscription.client.host ou pelo | |
// método #setPreferredAddress(URL); | |
//SubscriptionJAXRSClient client = new SubscriptionJAXRSClient(); | |
int TIMEOUT_IN_MILIS = 35 * 1000; | |
int MAX_CONNECTION_IN_POOL = 100; | |
return new SubscriptionJAXRSClient(TIMEOUT_IN_MILIS, TIMEOUT_IN_MILIS, MAX_CONNECTION_IN_POOL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment