Jumpi v1.2.0

org.jumpi.spi
Interface Selector

All Superinterfaces:
Selector
All Known Implementing Classes:
SelectorImpl

public interface Selector
extends Selector

A Selector provides synchronization support for multiple concurrent sending or receiving operations.

The service provider Selector interface extends the Selector interface provided to Jumpi client applications with a means of notifying client applications which are blocking in the Selector.select() method.


Method Summary
 void handleStatusChanged(Handle hdl)
           Notify the Selector that one of the Handles which belongs to it has become non blocking.
 
Methods inherited from interface org.jumpi.Selector
addHandle, clear, getAllHandles, getBlockingHandles, getNonBlockingHandles, removeBlockingHandle, removeBlockingHandles, removeHandle, removeNonBlockingHandle, removeNonBlockingHandles, select, select, size
 

Method Detail

handleStatusChanged

public void handleStatusChanged(Handle hdl)

Notify the Selector that one of the Handles which belongs to it has become non blocking. Any Jumpi client applications waiting in the Selector.select() method may proceed.

Each Handle is aware of the selectors to which it belongs. It is a responsibility of the Handle to inform the Selector when its internal status has changed from blocking to non blocking.

Parameters:
hdl - the handle who's status has changed.
See Also:
Selector.select(), Handle.addSelector(org.jumpi.spi.Selector), Handle.removeSelector(org.jumpi.spi.Selector)

Jumpi v1.2.0

Copyright © 2003, Peter Jonathan Klauser.