Try next proxy when error occurs August 09, 2009 01:04PM |
Registered: 15 years ago Posts: 7 |
Re: Try next proxy when error occurs August 09, 2009 01:53PM |
Admin Registered: 19 years ago Posts: 2,425 |
Re: Try next proxy when error occurs August 09, 2009 02:05PM |
Registered: 15 years ago Posts: 7 |
Re: Try next proxy when error occurs August 09, 2009 02:11PM |
Admin Registered: 19 years ago Posts: 2,425 |
Language: Javapublic List<ConnectionSettings> getRotatedEnabledConnections() { synchronized (connectionSettingsLock) { final List<ConnectionSettings> list = new ArrayList<ConnectionSettings>(availableConnections.size()); for (ConnectionSettings settings : availableConnections) { if (settings.isEnabled() && !settings.isDefault()) { list.add(settings); } } if (list.size() > 1) {//rotate enabled proxies Collections.rotate(list, rotate++); } if (useDefaultConnection() && defaultConnectionSettings.isEnabled()) list.add(0, defaultConnectionSettings); return list; } }
Re: Try next proxy when error occurs August 11, 2009 03:25PM |
Registered: 15 years ago Posts: 7 |