Class StreamUtils
java.lang.Object
org.red5.server.api.stream.support.StreamUtils
Stream helper methods.
- Author:
- The Red5 Project, Steven Gong (steven.gong@gmail.com), Paul Gregoire (mondain@gmail.com)
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static ConcurrentMap<String,
IServerStream> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IServerStream
createServerStream
(IScope scope, String name) Creates server streamstatic IServerStream
getServerStream
(IScope scope, String name) Looks up a server stream in the stream map.static void
putServerStream
(IScope scope, String name, IServerStream stream) Puts a server stream in the stream mapstatic void
removeServerStream
(IScope scope, String name) Removes a server stream from the stream map
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
serverStreamMap
-
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
createServerStream
Creates server stream- Parameters:
scope
- Scope of streamname
- Name of stream- Returns:
- IServerStream object
-
getServerStream
Looks up a server stream in the stream map. Null will be returned if the stream is not found.- Parameters:
scope
- Scope of streamname
- Name of stream- Returns:
- IServerStream object
-
putServerStream
Puts a server stream in the stream map- Parameters:
scope
- Scope of streamname
- Name of streamstream
- ServerStream object
-
removeServerStream
Removes a server stream from the stream map- Parameters:
scope
- Scope of streamname
- Name of stream
-