|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionManager
Class that manages the life cycle for connections and services.
Method Summary | |
---|---|
void |
addConnectionHandleStateListener(IConnectionHandleStateListener listener,
IConnectionHandleFilter filter)
Registers a listener for changes to IConnectionHandle s. |
IConnectionHandle |
connect(IConnectionDescriptor descriptor)
Connect using the IConnectionDescriptor |
IConnectionHandle |
disconnect(IConnectionHandle handle)
Disconnects a IConnectionHandle |
IConnectionHandle[] |
getConnections()
Returns all available IConnectionHandle |
IConnectionHandle[] |
getConnections(IConnectionDescriptor descriptor)
Returns all connection for a given IConnectionDescriptor |
void |
removeConnectionHandleStateListener(IConnectionHandleStateListener listener)
Removes the specified listener. |
Method Detail |
---|
IConnectionHandle connect(IConnectionDescriptor descriptor) throws ConnectionException
IConnectionDescriptor
descriptor
- the descriptor
ConnectionException
- if a connection could not be establishedIConnectionHandle disconnect(IConnectionHandle handle) throws ConnectionException
IConnectionHandle
handle
- the connection to disconnect
ConnectionException
- if the connection could not be disconnectedIConnectionHandle[] getConnections()
IConnectionHandle
IConnectionHandle
sIConnectionHandle[] getConnections(IConnectionDescriptor descriptor)
IConnectionDescriptor
descriptor
-
IConnectionDescriptor
void addConnectionHandleStateListener(IConnectionHandleStateListener listener, IConnectionHandleFilter filter)
IConnectionHandle
s.
listener
- the listener to register.filter
- the filter to decide for which IConnectionHandle
s to
to notify the listener. May be null, which means notifications
will be triggered by all IConnectionHandles.void removeConnectionHandleStateListener(IConnectionHandleStateListener listener)
listener
- the listener to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |