X
xEM
I'm using selector to manage connection on server. When server get an
incomming connection register this connection in non-blocking mode for
making readiness selection on it. In some moment i want to operate
with clients channels with blocking mode... but i can't change channel
to blocking mode, because is registered with selector in non-blocking
mode - i get IllegalBlockingModeException. How can i operate for a
while in blocking mode, but not to lose possibility readiness
selection on channel?
incomming connection register this connection in non-blocking mode for
making readiness selection on it. In some moment i want to operate
with clients channels with blocking mode... but i can't change channel
to blocking mode, because is registered with selector in non-blocking
mode - i get IllegalBlockingModeException. How can i operate for a
while in blocking mode, but not to lose possibility readiness
selection on channel?