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.
Currently, only a constraint on the bandwidth is supported.


Field Summary
 java.lang.Double maxBandwidth
          Bandwidth constraint, in Kbit/sec, for data flow from the Connection.
 
Constructor Summary
ConnectionConstraints()
          Creates a connection constraints bean object with no constraints specified.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object