public interface IConnectionManager<T>
Modifier and Type | Method and Description |
---|---|
T |
createConnection(Class<?> connCls)
Creates a connection based on the given type class.
|
T |
createConnection(Class<?> connCls,
String sessionId)
Creates a connection of the type specified with associated session id.
|
Collection<T> |
getAllConnections()
Returns all the current connections.
|
T |
getConnection(int clientId)
Returns a connection matching the given client id.
|
T |
getConnectionBySessionId(String sessionId)
Returns a connection matching the given session id.
|
T |
removeConnection(int clientId)
Removes a connection matching the client id specified.
|
T |
removeConnection(String sessionId)
Removes a connection by the given sessionId.
|
Collection<T> |
removeConnections()
Removes all the connections from the set.
|
void |
setConnection(T conn)
Adds a connection.
|
T getConnection(int clientId)
clientId
- client idvoid setConnection(T conn)
conn
- connectionT getConnectionBySessionId(String sessionId)
sessionId
- session idCollection<T> getAllConnections()
T createConnection(Class<?> connCls)
connCls
- classT createConnection(Class<?> connCls, String sessionId)
connCls
- classsessionId
- session idT removeConnection(int clientId)
clientId
- client idT removeConnection(String sessionId)
sessionId
- session idCollection<T> removeConnections()
Copyright © 2005–2019 Red5. All rights reserved.