com.lightstreamer.ls_client
Class ConnectionConstraints

java.lang.Object
  extended by com.lightstreamer.ls_client.ConnectionConstraints
All Implemented Interfaces:
java.lang.Cloneable

public class ConnectionConstraints
extends java.lang.Object
implements java.lang.Cloneable

Collects constraints to be applied on the overall data flow from a Connection. They can only be used in order to restrict the constraints set by Lightstreamer Server Metadata Adapter.


Field Summary
 java.lang.Double maxBandwidth
          Bandwidth constraint, in Kbit/sec, for data flow from the Connection.
 java.lang.Double slowingFactor
          Deprecated. Operating on the bandwidth constraint should be enough to slow-down the data flow. In extreme cases, polling mode and a high ConnectionInfo.pollingMillis can be used.
 java.lang.Double topMaxFrequency
          Deprecated. Operating on the bandwidth constraint should be enough to slow-down the data flow. In extreme cases, polling mode and a high ConnectionInfo.pollingMillis can be used.
 
Constructor Summary
ConnectionConstraints()
          Creates a connection constraints bean object with no constraints specified.
 
Method Summary
 java.lang.Object clone()
          Method clone.
 boolean equals(java.lang.Object other)
          Method equals.
 java.lang.String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

topMaxFrequency

public java.lang.Double topMaxFrequency
Deprecated. Operating on the bandwidth constraint should be enough to slow-down the data flow. In extreme cases, polling mode and a high ConnectionInfo.pollingMillis can be used.
Maximum update frequency constraint to be applied to all Items. If null, the slowingFactor constraint may have to be applied.


slowingFactor

public java.lang.Double slowingFactor
Deprecated. Operating on the bandwidth constraint should be enough to slow-down the data flow. In extreme cases, polling mode and a high ConnectionInfo.pollingMillis can be used.
Slowing factor to be applied to all Item frequencies, where not unlimited. It is ignored if topMaxFrequency is also set. If null, the topMaxFrequency constraint may have to be applied.


maxBandwidth

public java.lang.Double maxBandwidth
Bandwidth constraint, in Kbit/sec, for data flow from the Connection. If null, no bandwidth constraint has to be applied.

Constructor Detail

ConnectionConstraints

public ConnectionConstraints()
Creates a connection constraints bean object with no constraints specified.

Method Detail

toString

public java.lang.String toString()
Method toString.

Overrides:
toString in class java.lang.Object
Returns:
...

clone

public java.lang.Object clone()
Method clone.

Overrides:
clone in class java.lang.Object
Returns:
...

equals

public boolean equals(java.lang.Object other)
Method equals.

Overrides:
equals in class java.lang.Object
Returns:
...