|
||||||||||
| 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 IConnectionHandles. |
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 established
IConnectionHandle disconnect(IConnectionHandle handle)
throws ConnectionException
IConnectionHandle
handle - the connection to disconnect
ConnectionException - if the connection could not be disconnectedIConnectionHandle[] getConnections()
IConnectionHandle
IConnectionHandlesIConnectionHandle[] getConnections(IConnectionDescriptor descriptor)
IConnectionDescriptor
descriptor -
IConnectionDescriptor
void addConnectionHandleStateListener(IConnectionHandleStateListener listener,
IConnectionHandleFilter filter)
IConnectionHandles.
listener - the listener to register.filter - the filter to decide for which IConnectionHandles 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 | |||||||||