* Updates all the selection registrations for new interest or cancellation.
*
* @throws IOException
*/
protected void updateKeys() throws IOException {
SelectionRegistration updatedRegistration = getUpdatedRegistrations()
.poll();
while (updatedRegistration != null) {
if (getHelper().getLogger().isLoggable(Level.FINEST)) {
getHelper().getLogger().log(
Level.FINEST,
"Updating NIO interest with selector: "
+ updatedRegistration);
}
updatedRegistration.update();
updatedRegistration = getUpdatedRegistrations().poll();
}
}