Lex,
I've seen this too. I use a SimpleTimeLimiter mechanism available from the
google guava library as such:
ReportDownloadResponse response = null;
final TimeLimiter limiter = new SimpleTimeLimiter();
final Callable<ReportDownloadResponse> processCallable = new
Callable<ReportDownloadResponse>() {
public ReportDownloadResponse call() throws Exception {
return ReportUtils.downloadReport( user, rd, fos );
}
};
response = limiter.callWithTimeout( processCallable, 300, TimeUnit.SECONDS,
false );
Pete
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en