HCOLL-294 reduced object creation in the TcpReplication Selector

This commit is contained in:
Rob Austin
2015-01-14 10:52:41 +00:00
parent a779e9d21e
commit efeab00079
@@ -273,14 +273,6 @@ final class TcpReplicator<K, V> extends AbstractChannelReplicator implements Clo
* @throws IOException
*/
private int select() throws IOException {
// spin loop 100000 times
for (int i = 0; i < SPIN_LOOP_COUNT; i++) {
final int keys = selector.selectNow();
if (keys != 0)
return keys;
}
return selector.select(selectorTimeout);
}