com.lightstreamer.ls_proxy
Class ProxyInfo

java.lang.Object
  extended by com.lightstreamer.ls_proxy.ProxyInfo
All Implemented Interfaces:
java.lang.Cloneable

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

Carries informations about the policies to be applied in Lightstreamer Server connection management. Default values for all parameters are set.


Field Summary
 int bwMonitorTimeoutMillis
          The time in milliseconds between consecutive samplings of the connection state.
 long connectionRetryTimeoutMillis
          The time to wait between subsequent reconnection attempts.
 int connectionTimeoutMillis
          The maximum elapsed time in milliseconds allowed for a successful connection attempt.
 boolean onFailedConnectionRetry
          The specification of the automatic recovery action to try in case of asynchronous connection failure.
 
Constructor Summary
ProxyInfo()
          Creates a policy settings bean object with default settings specified.
 
Method Summary
 java.lang.Object clone()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bwMonitorTimeoutMillis

public int bwMonitorTimeoutMillis
The time in milliseconds between consecutive samplings of the connection state.
The default setting is 2000 (2 seconds).


connectionTimeoutMillis

public int connectionTimeoutMillis
The maximum elapsed time in milliseconds allowed for a successful connection attempt.
Note that if the Stream-sense feature is enabled (see ConnectionInfo.enableStreamSense) the timeout set should be far greater than ConnectionInfo.streamingTimeoutMillis, otherwise the connection would be refused before the Stream-sense has had a chance to recover it.
The default setting is 30000 (30 seconds).


onFailedConnectionRetry

public boolean onFailedConnectionRetry
The specification of the automatic recovery action to try in case of asynchronous connection failure. If true, reconnection attempt will be performed.
The default setting is false.


connectionRetryTimeoutMillis

public long connectionRetryTimeoutMillis
The time to wait between subsequent reconnection attempts. Unsuccessful reconnection attempts will stop as soon as a successful connection or disconnection is performed in another thread. A zero or negative value means that only one reconnection attempt has to be performed.
Note that if the Stream-sense feature is enabled (see ConnectionInfo.enableStreamSense) the timeout set should be far greater than ConnectionInfo.streamingTimeoutMillis, otherwise a reconnection attempt would be abandoned before the Stream-sense has had a chance to recover it.
The default setting is 0.

Constructor Detail

ProxyInfo

public ProxyInfo()
Creates a policy settings bean object with default settings specified.

Method Detail

clone

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