org.red5.server.net.rtmp
Class RTMPClientConnManager
java.lang.Object
org.red5.server.net.rtmp.RTMPClientConnManager
- All Implemented Interfaces:
- IRTMPConnManager
public class RTMPClientConnManager
- extends Object
- implements IRTMPConnManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rtmpConnections
protected static CopyOnWriteArraySet<RTMPConnection> rtmpConnections
getInstance
public static RTMPClientConnManager getInstance()
getConnection
public RTMPConnection getConnection(int clientId)
- Returns a connection matching the given client id.
- Specified by:
getConnection
in interface IRTMPConnManager
- Parameters:
clientId
-
- Returns:
- connection
removeConnection
public RTMPConnection removeConnection(int clientId)
- Removes a connection matching the client id specified. If found, the connection
will be returned.
- Specified by:
removeConnection
in interface IRTMPConnManager
- Parameters:
clientId
-
- Returns:
- connection
removeConnections
public Collection<RTMPConnection> removeConnections()
- Removes all the connections from the set.
- Specified by:
removeConnections
in interface IRTMPConnManager
createConnection
public RTMPConnection createConnection(Class<?> connCls)
- Specified by:
createConnection
in interface IRTMPConnManager
Copyright © 2006-2010 The Red5 Project