Method Summary |
|
synchronized void | add(SelectItem sel) Add a SelectItem to this SelectSetDevPollImpl. |
synchronized void | add(SelectItem selarr) Add all of the SelectItems in the given array to the SelectSetDevPollImpl. |
synchronized SelectItem | elementAt(int index) Return the SelectItem at the given index. |
synchronized SelectItem[] | getEvents(short mask) Returns an array of SelectItems for which events matching the given
event mask have occurred (that is, that the revents field matches
the given mask). |
synchronized SelectItem[] | getEvents() Returns an array of SelectItems for which some events have occurred
(that is, that the revents field is nonzero). |
static boolean | isSupported() Returns true if /dev/poll is supported on this platform. |
synchronized int | numActive() Return the number of active SelectItems in this SelectSetDevPollImpl. |
synchronized void | remove(SelectItem sel) Remove a SelectItem from the SelectSetDevPollImpl. |
synchronized void | remove(SelectItem selarr) Remove all of the SelectItems in the given array from the
SelectSetDevPollImpl. |
synchronized void | remove(int index) Remove the SelectItem at the given index from the SelectSetDevPollImpl. |
int | select(int timeout) Wait for events to occur on the SelectItems in this SelectSetDevPollImpl.
Upon return, the 'revents' field of each SelectItem will be
set to the mask of events that occurred. |
synchronized int | size() Return the number of SelectItems in this SelectSetDevPollImpl. |
public String | toString() |
synchronized void | update() Push updated event masks for all SelectItems in this SelectSet to
the /dev/poll device. |
synchronized void | update(SelectItem sel) Push updated event masks for all SelectItems in this SelectSet to
native code. |