|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.component.ElasticBuffer
public class ElasticBuffer
Elastic buffer is asynchronous FIFO buffer wich automatically compensates for drift between receiver clock and transmitter clock signals.
| Constructor Summary | |
|---|---|
ElasticBuffer(int delay,
int limit)
Creates new elastic buffer. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
isEmpty()
|
Frame |
read()
Retreives and removes frame from the head of the buffer. |
void |
setListener(BufferListener listener)
Sets buffer state monitor. |
void |
write(Frame frame)
Writes given frame to the tail of the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElasticBuffer(int delay,
int limit)
delay - the initial delay of signal measured in frameslimit - the physical limit of the buffer measured in frames.| Method Detail |
|---|
public void setListener(BufferListener listener)
listener - the monitor implementation.public void write(Frame frame)
frame - the frame to writepublic Frame read()
public void clear()
public boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||