juju.reattore.core.reactor
Interface ServerSocketReactor

All Superinterfaces:
Reactor
All Known Implementing Classes:
CombinedReactor

public interface ServerSocketReactor
extends Reactor

A reactor that understands server sockets and will handle new incoming connections and will hand them off to the handler as they arrive.


Method Summary
 void attach(java.nio.channels.ServerSocketChannel ch, ServerSocketHandler handler)
          Binds this reactor to a new handler and socket.
 

Method Detail

attach

public void attach(java.nio.channels.ServerSocketChannel ch,
                   ServerSocketHandler handler)
            throws java.io.IOException
Binds this reactor to a new handler and socket. The socket should be created and bound but otherwise unused.

Parameters:
ch - The socket to manage
handler - The handler to call when the socket changes
Throws:
java.io.IOException - on PENDING


Copyright © 2002-2003 Michael Hope. All Rights Reserved.