/** * Returns the supplied connection count if {@link #useConnectionCount} is true. Otherwise returns {@link * #invocationCount}. * * @param connectionCount as reported by the connection * * @return count used to reorder the URL list */ protected int getCount(final int connectionCount) { if (useConnectionCount) { return connectionCount; } return returnAndIncrementInvocationCount(); }