|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ConnectionAcceptor
handles requests to open
user Connection
instances
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 |
public void accept(java.lang.String name, ConnectionHandler handler) throws java.rmi.RemoteException
name
- the connection namehandler
- the handler to pass new connections to
java.rmi.RemoteException
- if a handler is already registered for
name
java.lang.IllegalArgumentException
- if any argument is nullpublic void close(java.lang.String name)
name
- the connection name
java.lang.IllegalArgumentException
- if name
is nullpublic void close() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |