org.mobicents.media.server.spi.memory
Class Frame

java.lang.Object
  extended by org.mobicents.media.server.spi.memory.Frame
All Implemented Interfaces:
Comparable<Delayed>, Delayed

public class Frame
extends Object
implements Delayed

Author:
kulikov

Constructor Summary
protected Frame(Partition partition, byte[] data)
           
 
Method Summary
 Frame clone()
           
 int compareTo(Delayed o)
           
 byte[] getData()
           
 long getDelay(TimeUnit unit)
           
 long getDuration()
           
 Format getFormat()
           
 String getHeader()
           
 int getLength()
           
 int getOffset()
           
 long getSequenceNumber()
           
 long getTimestamp()
           
 boolean isEOM()
           
 void recycle()
           
protected  void reset()
           
 void setDuration(long duration)
           
 void setEOM(boolean value)
           
 void setFormat(Format format)
           
 void setHeader(String header)
           
 void setLength(int length)
           
 void setOffset(int offset)
           
 void setSequenceNumber(long sn)
           
 void setTimestamp(long timestamp)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Frame

protected Frame(Partition partition,
                byte[] data)
Method Detail

reset

protected void reset()

getHeader

public String getHeader()

setHeader

public void setHeader(String header)

getOffset

public int getOffset()

setOffset

public void setOffset(int offset)

getLength

public int getLength()

setLength

public void setLength(int length)

getData

public byte[] getData()

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

getDuration

public long getDuration()

setDuration

public void setDuration(long duration)

getSequenceNumber

public long getSequenceNumber()

setSequenceNumber

public void setSequenceNumber(long sn)

isEOM

public boolean isEOM()

setEOM

public void setEOM(boolean value)

getFormat

public Format getFormat()

setFormat

public void setFormat(Format format)

getDelay

public long getDelay(TimeUnit unit)
Specified by:
getDelay in interface Delayed

compareTo

public int compareTo(Delayed o)
Specified by:
compareTo in interface Comparable<Delayed>

recycle

public void recycle()

clone

public Frame clone()
Overrides:
clone in class Object


Copyright © 2011. All Rights Reserved.