Method Summary |
|
public QueueElementIF | blocking_dequeue(int timeout_millis) Dequeue the next element from the SelectSource. |
public QueueElementIF[] | blocking_dequeue(int timeout_millis, int num) Dequeue a set of elements from the SelectSource. |
public QueueElementIF[] | blocking_dequeue_all(int timeout_millis) Dequeue a set of elements from the SelectSource. |
public QueueElementIF | dequeue() Dequeues the next element from the SelectSource without blocking. |
public QueueElementIF[] | dequeue(int num) Dequeues at most num elements which are ready from the
SelectSource. |
public QueueElementIF[] | dequeue_all() Dequeues all elements which are ready from the SelectSource. |
public void | deregister(Object selkey_obj) Deregister a SelectItem with this SelectSource.
Note that after calling deregister, subsequent calls to dequeue
may in fact return this SelectItem as a result. |
public Selector | getSelector() |
public int | numActive() Return the number of active SelectItems registered with the SelectSource. |
public int | numRegistered() Return the number of SelectItems registered with the SelectSource. |
public Object | register(Object nio_sc_obj, int ops) Register a SelectItem with the SelectSource. |
public void | register(Object sel) |
void | setName(String thename) |
public int | size() Return the number of elements waiting in the queue (that is,
which don't require a SelectSet poll operation to retrieve). |
public String | toString() |
public void | update() Must be called if the 'events' mask of any SelectItem registered
with this SelectSource changes. |
public void | update(Object sel) Must be called if the 'events' mask of this SelectItem (which
must be registered with this SelectSource) changes. |