org.red5.server.net.rtmp
Class RTMPClientConnManager

java.lang.Object
  extended by org.red5.server.net.rtmp.RTMPClientConnManager
All Implemented Interfaces:
IRTMPConnManager

public class RTMPClientConnManager
extends Object
implements IRTMPConnManager


Field Summary
protected static CopyOnWriteArraySet<RTMPConnection> rtmpConnections
           
 
Method Summary
 RTMPConnection createConnection(Class<?> connCls)
           
 RTMPConnection getConnection(int clientId)
          Returns a connection matching the given client id.
static RTMPClientConnManager getInstance()
           
 RTMPConnection removeConnection(int clientId)
          Removes a connection matching the client id specified.
 Collection<RTMPConnection> removeConnections()
          Removes all the connections from the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rtmpConnections

protected static CopyOnWriteArraySet<RTMPConnection> rtmpConnections
Method Detail

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