|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.stream.PlayBuffer
public class PlayBuffer
A Play buffer for sending VOD. The implementation is not synchronized.
Constructor Summary | |
---|---|
PlayBuffer(long capacity)
Create play buffer with given capacity |
Method Summary | |
---|---|
void |
clear()
Empty this buffer. |
long |
getCapacity()
Buffer capacity in bytes. |
int |
getMessageCount()
Number of messages in buffer. |
long |
getMessageSize()
Total message size in bytes. |
RTMPMessage |
peekMessage()
Peek a message but not take it from the buffer. |
boolean |
putMessage(RTMPMessage message)
Put a message into this buffer. |
void |
setCapacity(long capacity)
Setter for capacity |
RTMPMessage |
takeMessage()
Take a message from this buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlayBuffer(long capacity)
capacity
- Capacity of bufferMethod Detail |
---|
public long getCapacity()
public void setCapacity(long capacity)
capacity
- New capacitypublic int getMessageCount()
public long getMessageSize()
public boolean putMessage(RTMPMessage message)
message
- RTMP message
public RTMPMessage takeMessage()
public RTMPMessage peekMessage()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |