/** * Throttle a request with a collection of table records as the argument if necessary. * @param records collection of records used for the table request */ public void throttleRecords(Collection<Entry<K, V>> records) { throttle(getEntryCredits(records)); } }
/** * Throttle a request with a collection of table records as the argument if necessary. * @param records collection of records used for the table request */ public void throttleRecords(Collection<Entry<K, V>> records) { throttle(getEntryCredits(records)); }
/** * Throttle a request with a collection of table records as the argument if necessary. * @param records collection of records used for the table request */ public void throttleRecords(Collection<Entry<K, V>> records) { throttle(getEntryCredits(records)); }
/** * Throttle a request with a collection of table records as the argument if necessary. * @param records collection of records used for the table request */ public void throttleRecords(Collection<Entry<K, V>> records) { throttle(getEntryCredits(records)); }
/** * Throttle a request with a collection of table records as the argument if necessary. * @param records collection of records used for the table request */ public void throttleRecords(Collection<Entry<K, V>> records) { throttle(getEntryCredits(records)); }
@Test public void testCreditEntries() { TableRateLimiter<String, String> rateLimitHelper = getThrottler(); Assert.assertEquals(12, rateLimitHelper.getEntryCredits( Arrays.asList(new Entry<>("abc", "efg"), new Entry<>("hij", "lmn")))); }