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

java.lang.Object
  extended by org.mobicents.media.server.spi.memory.Frame

public class Frame
extends Object

Author:
yulian oifa

Field Summary
protected  AtomicBoolean inPartition
           
 
Constructor Summary
protected Frame(Partition partition, byte[] data)
           
 
Method Summary
 Frame clone()
           
 byte[] getData()
           
 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
 

Field Detail

inPartition

protected AtomicBoolean inPartition
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)

recycle

public void recycle()

clone

public Frame clone()
Overrides:
clone in class Object


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.