| org.xsocket.IDispatcher
IDispatcher | public interface IDispatcher extends Runnable,Closeable(Code) | | A Dispatcher encapsulates an underlying Selector. It is responsible
for the channel handle management. If a readiness event occurs, the
assigned
IDispatcherEventHandler will be called.
This is a xSocket internal class and subject to change
author: grro@xsocket.org |
deregister | public void deregister(T handle) throws IOException(Code) | | deregister a handle.
This method is thread save
Parameters: handle - the handle to deregister throws: IOException - If some I/O error occurs |
getEventHandler | public IDispatcherEventHandler<T> getEventHandler()(Code) | | get the event handler of this dispatcher
.
This method is thread save
the event handler |
getRegistered | public Set<T> getRegistered()(Code) | | return the registered handles
a list of the registered handles |
register | public void register(T handle, int ops) throws IOException(Code) | | register a new handle.
.
This method is thread save
Parameters: handle - the handle to register Parameters: ops - the interest set throws: IOException - If some I/O error occurs |
updateInterestSet | public void updateInterestSet(T handle, int ops) throws IOException(Code) | | announce a write for he given handle.
This method is thread save
Parameters: handle - the handle for the write need Parameters: ops - the interest set throws: IOException - if the given hnadle is invalid |
|
|