Class StreamUtils
java.lang.Object
org.red5.server.api.stream.support.StreamUtils
Stream helper methods.
- Author:
- The Red5 Project, Steven Gong ([email protected]), Paul Gregoire ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static ConcurrentMap<String,IServerStream> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IServerStreamcreateServerStream(IScope scope, String name) Creates server streamstatic IServerStreamgetServerStream(IScope scope, String name) Looks up a server stream in the stream map.static voidputServerStream(IScope scope, String name, IServerStream stream) Puts a server stream in the stream mapstatic voidremoveServerStream(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
-