|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ChannelSelector
Interface for objects that act as an NIO selector for local (in-VM) channels.
| Method Summary | |
|---|---|
ChannelWrapper<?> |
getChannel()
Get the channel this selector is polling. |
boolean |
select()
This method blocks until the state of the channel has changed. |
boolean |
select(long timeout)
This method blocks until the state of the channel has changed or the timeout expires, whichever happens first. |
boolean |
selectNow()
Determine whether the channel state has changed and return immediately. |
void |
wakeUp()
Wake up this selector. |
| Method Detail |
|---|
boolean select()
boolean select(long timeout)
timeout - the maximum duration in milliseconds for this operation.
boolean selectNow()
void wakeUp()
ChannelWrapper<?> getChannel()
ChannelWrapper instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||