Package org.red5.server.net.rtmp
Interface IRTMPConnManager
public interface IRTMPConnManager
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(Class<?> connCls) Creates a connection based on the given RTMPConnection class.getConnection
(int clientId) Returns a connection matching the given client id.getConnectionBySessionId
(String sessionId) Returns a connection matching the given session id.removeConnection
(int clientId) Removes a connection matching the client id specified.Removes all the connections from the set.
-
Method Details
-
getConnection
Returns a connection matching the given client id.- Parameters:
clientId
- client id- Returns:
- connection
-
getConnectionBySessionId
Returns a connection matching the given session id.- Parameters:
sessionId
- session id- Returns:
- connection
-
createConnection
Creates a connection based on the given RTMPConnection class.- Parameters:
connCls
- class- Returns:
- connection
-
removeConnection
Removes a connection matching the client id specified. If found, the connection will be returned.- Parameters:
clientId
- client id- Returns:
- connection
-
removeConnections
Collection<RTMPConnection> removeConnections()Removes all the connections from the set.- Returns:
- connections
-