Method Summary |
|
synchronized void | add(SelectItem sel) Add a SelectItem to this SelectSetPollImpl. |
synchronized void | add(SelectItem selarr) Add all of the SelectItems in the given array to the SelectSetPollImpl. |
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 poll(2) is supported on this platform. |
synchronized int | numActive() Return the number of active SelectItems in this SelectSetPollImpl. |
synchronized void | remove(SelectItem sel) Remove a SelectItem from the SelectSetPollImpl. |
synchronized void | remove(SelectItem selarr) Remove all of the SelectItems in the given array from the
SelectSetPollImpl. |
synchronized void | remove(int index) Remove the SelectItem at the given index from the SelectSetPollImpl. |
int | select(int timeout) Wait for events to occur on the SelectItems in this SelectSetPollImpl.
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 SelectSetPollImpl. |
public String | toString() |
void | update() Update any changed event masks in the SelectSet. |
void | update(SelectItem sel) Update any changed event masks in this SelectItem. |