Package com.swiftmq.swiftlet.net
Interface ConnectionManager
public interface ConnectionManager
The ConnectionManager is responsible for registering and managing connections.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConnection
(Connection connection) Adds a connection.int
Returns the number of connectionsvoid
Removes and closes all connections.void
removeConnection
(Connection connection) Removes and closes the connection.
-
Method Details
-
getNumberConnections
int getNumberConnections()Returns the number of connections- Returns:
- number of connections.
-
addConnection
Adds a connection.- Parameters:
connection
- connection.
-
removeConnection
Removes and closes the connection. This closes the connection asynchrounsly.- Parameters:
connection
- connection.
-
removeAllConnections
void removeAllConnections()Removes and closes all connections.
-