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

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

public class SimpleConnectionBWConfig
extends SimpleBandwidthConfigure
implements IConnectionBWConfig

Simple implementation of connection bandwidth configuration.

Author:
Steven Gong (steven.gong@gmail.com)

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
SimpleConnectionBWConfig()
           
 
Method Summary
 long getDownstreamBandwidth()
          Getter for downstream bandwidth
 long getUpstreamBandwidth()
          Get the upstream bandwidth to be notified to the client.
 void setUpstreamBandwidth(long bw)
          Set the upstream bandwidth to be notified to the client.
 
Methods inherited from class org.red5.server.api.stream.support.SimpleBandwidthConfigure
clone, getChannelBandwidth, getChannelInitialBurst
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.red5.server.api.IBandwidthConfigure
getChannelBandwidth, getChannelInitialBurst
 

Constructor Detail

SimpleConnectionBWConfig

public SimpleConnectionBWConfig()
Method Detail

getDownstreamBandwidth

public long getDownstreamBandwidth()
Description copied from interface: IConnectionBWConfig
Getter for downstream bandwidth

Specified by:
getDownstreamBandwidth in interface IConnectionBWConfig
Returns:
Downstream bandwidth, from server to client

getUpstreamBandwidth

public long getUpstreamBandwidth()
Description copied from interface: IConnectionBWConfig
Get the upstream bandwidth to be notified to the client. Upstream is the data that is sent from the client to the server.

Specified by:
getUpstreamBandwidth in interface IConnectionBWConfig
Returns:
Upstream (from client to server) bandwidth configuration

setUpstreamBandwidth

public void setUpstreamBandwidth(long bw)
Description copied from interface: IConnectionBWConfig
Set the upstream bandwidth to be notified to the client. Upstream is the data that is sent from the client to the server.

Specified by:
setUpstreamBandwidth in interface IConnectionBWConfig
Parameters:
bw - Bandwidth


Copyright © 2006-2009 The Red5 Project