|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedConnection
A ManagedConnection
represents a physical connection.
It
is responsible for managing multiple Connection
instances, which
perform method invocations over the physical connection.
Connection
Method Summary | |
---|---|
void |
destroy()
Destroys the physical connection. |
Connection |
getConnection()
Creates a new connection handle for the underlying physical connection. |
URI |
getLocalURI()
Returns the local address that this connection is bound to. |
java.security.Principal |
getPrincipal()
Returns the principal associated with this connection. |
URI |
getRemoteURI()
Returns the remote address to which this is connected. |
void |
ping()
Ping the connection. |
void |
setConnectionEventListener(ManagedConnectionListener listener)
Registers a connection event listener. |
void |
setInvocationHandler(InvocationHandler handler)
Registers a handler for handling invocations on objects exported via this connection. |
Method Detail |
---|
void setInvocationHandler(InvocationHandler handler) throws ResourceException
handler
- the invocation handler
IllegalStateException
- if a handler is already registered
ResourceException
- for any errorvoid setConnectionEventListener(ManagedConnectionListener listener) throws ResourceException
listener
- the connection event listener
ResourceException
- for any errorConnection getConnection() throws ResourceException
IllegalStateException
- if an InvocationHandler
hasn't
been registered
ResourceException
- for any errorvoid ping() throws ResourceException
IllegalStateException
- if no invocation handler has been
registered, or if the connection has been
destroyed
ResourceException
- for any errorURI getRemoteURI() throws ResourceException
ResourceException
- for any errorURI getLocalURI() throws ResourceException
ResourceException
- for any errorjava.security.Principal getPrincipal() throws ResourceException
null if none is set
- Throws:
ResourceException
- for any error
void destroy() throws ResourceException
ResourceException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |