public class RTMPConnManager extends Object implements org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<String,org.red5.server.net.rtmp.RTMPConnection> |
connMap |
protected AtomicInteger |
conns |
protected static org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection> |
instance |
| Constructor and Description |
|---|
RTMPConnManager() |
| Modifier and Type | Method and Description |
|---|---|
org.red5.server.net.rtmp.RTMPConnection |
createConnection(Class<?> connCls) |
org.red5.server.net.rtmp.RTMPConnection |
createConnection(Class<?> connCls,
String sessionId) |
org.red5.server.net.rtmp.RTMPConnection |
createConnectionInstance(Class<?> cls)
Creates a connection instance based on the supplied type.
|
Collection<org.red5.server.net.rtmp.RTMPConnection> |
getAllConnections() |
org.red5.server.net.rtmp.RTMPConnection |
getConnection(int clientId)
Returns a connection for a given client id.
|
org.red5.server.net.rtmp.RTMPConnection |
getConnectionBySessionId(String sessionId)
Returns a connection for a given session id.
|
static org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection> |
getInstance() |
org.red5.server.net.rtmp.RTMPConnection |
removeConnection(int clientId) |
org.red5.server.net.rtmp.RTMPConnection |
removeConnection(String sessionId) |
Collection<org.red5.server.net.rtmp.RTMPConnection> |
removeConnections() |
void |
setConnection(org.red5.server.net.rtmp.RTMPConnection conn)
Adds a connection.
|
static void |
setExecutorQueueCapacity(int executorQueueCapacity) |
static void |
setMaxHandshakeTimeout(int maxHandshakeTimeout) |
static void |
setMaxInactivity(int maxInactivity) |
static void |
setPingInterval(int pingInterval) |
protected static org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection> instance
protected ConcurrentMap<String,org.red5.server.net.rtmp.RTMPConnection> connMap
protected AtomicInteger conns
public static org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection> getInstance()
public org.red5.server.net.rtmp.RTMPConnection createConnection(Class<?> connCls)
createConnection in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>public org.red5.server.net.rtmp.RTMPConnection createConnection(Class<?> connCls, String sessionId)
createConnection in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>public void setConnection(org.red5.server.net.rtmp.RTMPConnection conn)
setConnection in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>conn - public org.red5.server.net.rtmp.RTMPConnection getConnection(int clientId)
getConnection in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>clientId - public org.red5.server.net.rtmp.RTMPConnection getConnectionBySessionId(String sessionId)
getConnectionBySessionId in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>sessionId - public org.red5.server.net.rtmp.RTMPConnection removeConnection(int clientId)
removeConnection in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>public org.red5.server.net.rtmp.RTMPConnection removeConnection(String sessionId)
removeConnection in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>public Collection<org.red5.server.net.rtmp.RTMPConnection> getAllConnections()
getAllConnections in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>public Collection<org.red5.server.net.rtmp.RTMPConnection> removeConnections()
removeConnections in interface org.red5.server.net.IConnectionManager<org.red5.server.net.rtmp.RTMPConnection>public org.red5.server.net.rtmp.RTMPConnection createConnectionInstance(Class<?> cls) throws Exception
cls - Exceptionpublic static void setMaxHandshakeTimeout(int maxHandshakeTimeout)
public static void setMaxInactivity(int maxInactivity)
public static void setPingInterval(int pingInterval)
public static void setExecutorQueueCapacity(int executorQueueCapacity)
Copyright © 2005–2016 Red5. All rights reserved.