|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A ManagedConnection instance represents a physical connection
over a low level transport protocol.
Connection instances.
Connection,
Messenger| Method Summary | |
void |
accept(java.lang.String name,
ConnectionHandler handler)
Register a handler to accept connections for the specified name. |
void |
close()
Destroys the physical connection |
void |
close(java.lang.String name)
Stop accepting connect requests for the specified connection |
Connection |
open(java.lang.String name,
ConnectionProperties properties)
Creates a new connection handle for the underlying physical connection represented by the ManagedConnection instance |
void |
setManagedConnectionEventListener(ManagedConnectionEventListener listener)
Set the listener for connection events |
| Method Detail |
public Connection open(java.lang.String name,
ConnectionProperties properties)
throws java.rmi.RemoteException
name - the name of the connectionproperties - connection properties (may be null)
ConnectException - if no handler is registered for
name
java.rmi.RemoteException - if a new connection handle cannot be created
public void accept(java.lang.String name,
ConnectionHandler handler)
throws java.rmi.RemoteException
name - the connection name to listen onhandler - the handler to pass new connections to
java.rmi.RemoteException - if an error occurs registering the handler
java.lang.IllegalArgumentException - if any argument is nullpublic void close(java.lang.String name)
name - the connection name
java.lang.IllegalArgumentException - if name is null
public void close()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurs closing the connectionpublic void setManagedConnectionEventListener(ManagedConnectionEventListener listener)
listener - the event listener. Setting it to null
removes the listener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||