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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addConnection(Connection connection)
Adds a connection.int
getNumberConnections()
Returns the number of connectionsvoid
removeAllConnections()
Removes and closes all connections.void
removeConnection(Connection connection)
Removes and closes the connection.
-
-
-
Method Detail
-
getNumberConnections
int getNumberConnections()
Returns the number of connections- Returns:
- number of connections.
-
addConnection
void addConnection(Connection connection)
Adds a connection.- Parameters:
connection
- connection.
-
removeConnection
void removeConnection(Connection connection)
Removes and closes the connection. This closes the connection asynchrounsly.- Parameters:
connection
- connection.
-
removeAllConnections
void removeAllConnections()
Removes and closes all connections.
-
-