@Override public int countAllValues(Token token) throws CountingNotSupportedException, ServiceException { Fetcher f = browser.restoreFetcher(token.getCookie()); int res = f.getEstimatedCount(); if (res <= 0) { res = PagingServiceUtilities.countManually(this, token); } return res; }
long start = System.currentTimeMillis(); Cookie c = token.getCookie(); Fetcher f = browser.restoreFetcher(c); f.setPageSize(token.getPageSize()); int pn = token.getPageNumber();