org.red5.server.api.stream.support
Class SimpleConnectionBWConfig
java.lang.Object
org.red5.server.api.stream.support.SimpleBandwidthConfigure
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)
SimpleConnectionBWConfig
public SimpleConnectionBWConfig()
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