|
||||||||||
| 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| Nested Class Summary | |
|---|---|
protected static class |
AbstractStream.State
Enumeration for states |
| Field Summary | |
|---|---|
protected long |
creationTime
Timestamp the stream was created. |
protected AbstractStream.State |
state
Current state |
| Constructor Summary | |
|---|---|
AbstractStream()
|
|
| Method Summary | |
|---|---|
IStreamCodecInfo |
getCodecInfo()
Return codec information |
long |
getCreationTime()
Returns timestamp at which the stream was created. |
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 AbstractStream.State state
protected long creationTime
| Constructor Detail |
|---|
public AbstractStream()
| Method Detail |
|---|
public String getName()
getName in interface IStreampublic IStreamCodecInfo getCodecInfo()
getCodecInfo in interface IStreampublic IScope getScope()
getScope in interface IStreampublic long getCreationTime()
getCreationTime in interface IStreampublic 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 | |||||||||