org.red5.server.api.stream.support
Class SimpleBandwidthConfigure

java.lang.Object
  extended by org.red5.server.api.stream.support.SimpleBandwidthConfigure
All Implemented Interfaces:
Cloneable, IBandwidthConfigure
Direct Known Subclasses:
SimpleConnectionBWConfig

public class SimpleBandwidthConfigure
extends Object
implements IBandwidthConfigure

This class is the only IBandwidthConfigure implementation provided in 0.6. It's a kind of ValueObject (item with a set of values that just stores data) that is used to configure Red5 application bandwidth settings. Note: To configure the connection's bandwidth, you should use the implementation of IConnectionBWConfig instead.

See Also:
IConnectionBWConfig, SimpleConnectionBWConfig

Field Summary
 
Fields inherited from interface org.red5.server.api.IBandwidthConfigure
AUDIO_CHANNEL, DATA_CHANNEL, MAX_CHANNEL_CONFIG_COUNT, OVERALL_CHANNEL, VIDEO_CHANNEL
 
Constructor Summary
SimpleBandwidthConfigure()
           
SimpleBandwidthConfigure(IBandwidthConfigure config)
           
 
Method Summary
protected  Object clone()
           
 long[] getChannelBandwidth()
          Return the bandwidth configure for 3 channels: audio, video, data and the overall bandwidth.
 long[] getChannelInitialBurst()
          Return the byte count of initial burst value for 3 channels: audio, video, data and the overall bandwidth.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBandwidthConfigure

public SimpleBandwidthConfigure()

SimpleBandwidthConfigure

public SimpleBandwidthConfigure(IBandwidthConfigure config)
Method Detail

getChannelBandwidth

public long[] getChannelBandwidth()
Description copied from interface: IBandwidthConfigure
Return the bandwidth configure for 3 channels: audio, video, data and the overall bandwidth. The unit is bit per second. A value of -1 means "don't care" so that there's no limit on bandwidth for that channel. The last element is the overall bandwidth. If it's not -1, the value of the first three elements will be ignored.

Specified by:
getChannelBandwidth in interface IBandwidthConfigure
Returns:
The 4-element array of bandwidth configure.

getChannelInitialBurst

public long[] getChannelInitialBurst()
Description copied from interface: IBandwidthConfigure
Return the byte count of initial burst value for 3 channels: audio, video, data and the overall bandwidth. If the value is -1, the default will be used per the implementation of bandwidth controller.

Specified by:
getChannelInitialBurst in interface IBandwidthConfigure
Returns:
The 4-element array of byte count of initial burst value.

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2006-2009 The Red5 Project