public class ConnectionInfo
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
adapter
ID of the Adapter Set to be used to handle all requests in the session.
|
ConnectionConstraints |
constraints
Configuration object that specifies the constraints to be applied
on the overall data flow from the Connection.
|
long |
contentLength
The length to be used by the Server for the response body on a
stream connection (a minimum length, however, is ensured by the server).
|
boolean |
enableControlLinkHandling
If true, enables the automatic handling of the server address
in order to bypass the load balancer server (if any) after the
first connection and allow the cleanest communication possible
between Lightstreamer client and server.
|
boolean |
enableStreamSense
If true, enables the Stream-sense feature; in case a streaming
session is being opened (i.e.
isPolling is false)
and no answer has been received on the newly opened connection
after a few seconds (set through streamingTimeoutMillis ),
the connection attempt is discarded and a new session opening
attempt is performed in smart polling mode. |
boolean |
isPolling
If set to true, data streaming is simulated through a smart polling
mechanism, that is a sequence of synchronous connections to the Server,
each of which will receive the currently available updates, or wait
until one is available.
|
long |
keepaliveMillis
Keepalive time requested for the stream connection.
|
java.lang.String |
password
User password to be supplied to the Server in the connection request.
|
long |
pollingIdleMillis
Maximum time the Server is allowed to wait for updates in case none
are available at connection time and a poll connection has been
requested.
|
long |
pollingMillis
Time between the end of a poll connection and the start of the next
one, if polling behaviour has been specified.
|
long |
probeTimeoutMillis
Timeout for activity checks, expressed in milliseconds.
|
long |
probeWarningMillis
Timeout for activity check warnings, expressed in milliseconds.
|
java.lang.String |
pushServerControlUrl
Lightstreamer Server URL (without the path part) to be used for
control requests;
e.g.
|
java.lang.String |
pushServerUrl
Lightstreamer Server URL, without the path part;
e.g.
|
long |
reconnectionTimeoutMillis
The maximum elapsed time in milliseconds allowed for a successful
reconnection attempt.
|
long |
streamingTimeoutMillis
The maximum elapsed time in milliseconds allowed for the first
successful streaming connection attempt on a streaming session.
|
java.lang.String |
user
User name to be supplied to the Server in the connection request.
|
Constructor and Description |
---|
ConnectionInfo()
Creates a connection settings bean object with default settings
specified.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
toString() |
public long probeTimeoutMillis
probeWarningMillis
),
no data has been received on the stream connection for this
further time, then the connection is forcibly closed.
public long probeWarningMillis
probeTimeoutMillis
elapses, then a notification
is issued to the ConnectionListener that the activity is normal again;
otherwise the connection is forcibly closed.
public long keepaliveMillis
public long reconnectionTimeoutMillis
LSClient.openConnection(com.lightstreamer.ls_client.ConnectionInfo, com.lightstreamer.ls_client.ConnectionListener)
call.
public boolean enableStreamSense
isPolling
is false)
and no answer has been received on the newly opened connection
after a few seconds (set through streamingTimeoutMillis
),
the connection attempt is discarded and a new session opening
attempt is performed in smart polling mode.
public boolean enableControlLinkHandling
public long streamingTimeoutMillis
enableStreamSense
is true;
if it fails, the current attempt will be discarded
and a new session opening will be tried in smart polling mode.
LSClient.openConnection(com.lightstreamer.ls_client.ConnectionInfo, com.lightstreamer.ls_client.ConnectionListener)
call.
That custom timeout should be significantly greater than
streamingTimeoutMillis; if it fires too early and a connection
close is forced, then the Stream-sense mechanism might operate
in vain.
public long contentLength
public java.lang.String pushServerUrl
public java.lang.String pushServerControlUrl
public java.lang.String user
public java.lang.String password
public java.lang.String adapter
public boolean isPolling
enableStreamSense
is set to true.
public long pollingMillis
public long pollingIdleMillis
public ConnectionConstraints constraints