org.exolab.core.messenger
Interface ConnectionAcceptor


public interface ConnectionAcceptor

A ConnectionAcceptor handles requests to open user Connection instances

Version:
$Revision: 1.4 $ $Date: 2002/02/21 09:49:41 $
Author:
Tim Anderson
See Also:
Connection, ConnectionHandler, ManagedConnection

Method Summary
 void accept(java.lang.String name, ConnectionHandler handler)
          Register a handler to accept connection requests for the specified connection
This method returns immediately.
 void close()
          Close the acceptor, freeing all associated resources
 void close(java.lang.String name)
          Stop accepting requests for the specified connection
 

Method Detail

accept

void accept(java.lang.String name,
            ConnectionHandler handler)
            throws java.rmi.RemoteException
Register a handler to accept connection requests for the specified connection
This method returns immediately.

Parameters:
name - the connection name
handler - the handler to pass new connections to
Throws:
java.rmi.RemoteException - if a handler is already registered for name
java.lang.IllegalArgumentException - if any argument is null

close

void close(java.lang.String name)
Stop accepting requests for the specified connection

Parameters:
name - the connection name
Throws:
java.lang.IllegalArgumentException - if name is null

close

void close()
           throws java.rmi.RemoteException
Close the acceptor, freeing all associated resources

Throws:
java.rmi.RemoteException - if an error occurs


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.