|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.stream.AbstractStream
public abstract class AbstractStream
Abstract base implementation of IStream. Contains codec information, stream name, scope, event handling meand, provides stream start and stop operations.
IStream
Field Summary | |
---|---|
protected long |
creationTime
Timestamp the stream was created. |
protected Notify |
metaData
Stores the streams metadata |
protected StreamState |
state
Current state |
Constructor Summary | |
---|---|
AbstractStream()
|
Method Summary | |
---|---|
IStreamCodecInfo |
getCodecInfo()
Return codec information |
long |
getCreationTime()
Returns timestamp at which the stream was created. |
Notify |
getMetaData()
Returns the metadata for the associated stream, if it exists. |
String |
getName()
Return stream name |
IScope |
getScope()
Return scope |
protected IStreamAwareScopeHandler |
getStreamAwareHandler()
Return stream aware scope handler or null if scope is null |
void |
setCodecInfo(IStreamCodecInfo codecInfo)
Setter for codec info |
void |
setName(String name)
Setter for name |
void |
setScope(IScope scope)
Setter for scope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.red5.server.api.stream.IStream |
---|
close, start, stop |
Field Detail |
---|
protected StreamState state
protected Notify metaData
protected long creationTime
Constructor Detail |
---|
public AbstractStream()
Method Detail |
---|
public String getName()
getName
in interface IStream
public IStreamCodecInfo getCodecInfo()
getCodecInfo
in interface IStream
public Notify getMetaData()
public IScope getScope()
getScope
in interface IStream
public long getCreationTime()
getCreationTime
in interface IStream
public void setName(String name)
name
- Stream namepublic void setCodecInfo(IStreamCodecInfo codecInfo)
codecInfo
- Codec infopublic void setScope(IScope scope)
scope
- Scopeprotected IStreamAwareScopeHandler getStreamAwareHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |