dcsimg
Question about select-method in Selector
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, December 18, 2002 02:36 AM

In the documentation it is written that the select-method of java.nio.channels.Selector returns when

1) a channel is selected, 2) wakeup is called, 3) the thread is interrupted or 4) the timeout elapsed, whichever comes first.

But if select returns with no channels selected, how
can I find out what happened? I must be able to distinguish between a timeout and the other causes.

About | Sitemap | Contact