1
OAuthService service = new ServiceBuilder()
                          .provider(TradeKingApi.class)
                          .apiKey(CONSUMER_KEY)
                          .apiSecret(CONSUMER_SECRET).build();
Token accessToken = new Token(OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
OAuthRequest request = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL);
service.signRequest(accessToken, request);

request.setConnectionKeepAlive(true);

我将不断获得流...在这种情况下,我如何关闭连接

你能在这方面帮助我吗

4

0 回答 0