com.lightstreamer.ls_proxy
Class BandwidthEvent

java.lang.Object
  extended by com.lightstreamer.ls_proxy.BandwidthEvent

public class BandwidthEvent
extends java.lang.Object

Carries information about Lightstreamer Server connection activity.


Constructor Summary
BandwidthEvent(boolean pushing, double bandwidth)
          Used by Lightstreamer to create an instance of a BandwidthEvent.
 
Method Summary
 double getBandwidth()
          Gets an estimation of the current connection bandwidth usage.
 boolean isPushing()
          Gets the current push activity status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BandwidthEvent

public BandwidthEvent(boolean pushing,
                      double bandwidth)
Used by Lightstreamer to create an instance of a BandwidthEvent.

Parameters:
pushing - the current push activity status.
bandwidth - the current connection bandwidth, in Kbit/sec.
Method Detail

getBandwidth

public double getBandwidth()
Gets an estimation of the current connection bandwidth usage.

Returns:
the current connection bandwidth, in Kbit/sec.

isPushing

public boolean isPushing()
Gets the current push activity status.

Returns:
true if push activity is on.