Skip to content

Instantly share code, notes, and snippets.

@dgomesbr
Last active June 10, 2016 19:31
Show Gist options
  • Save dgomesbr/d4e65b6a10341f661c736b1e73b70a3c to your computer and use it in GitHub Desktop.
Save dgomesbr/d4e65b6a10341f661c736b1e73b70a3c to your computer and use it in GitHub Desktop.
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