public interface ExtendedConnectionListener extends ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
onSessionStarted(boolean isPolling,
java.lang.String controlLink)
Notification that a session has been started by the Server
on the connection.
|
onActivityWarning, onClose, onConnectionEstablished, onDataError, onEnd, onFailure, onFailure, onNewBytes, onSessionStarted
void onSessionStarted(boolean isPolling, java.lang.String controlLink)
ConnectionListener.onSessionStarted(boolean)
method will not be called.isPolling
- True if the session is in polling mode,
false if the session is in streaming mode.
The setting reflects the one requested with the LSClient.openConnection(com.lightstreamer.ls_client.ConnectionInfo, com.lightstreamer.ls_client.ConnectionListener)
call unless the Stream-sense mechanism has been exploited.controlLink
- the hostname to be used to issue all requests related to the current session.
In fact, when a Server cluster is in place, the Server hostname specified through ConnectionInfo.pushServerUrl
can identify various Server instances; in order to ensure that all requests related to a session are
issued to the same Server instance, the Server can answer to the session opening request by providing a
hostname which uniquely identifies its own instance. When this is the case, this hostname is passed
to the method; otherwise, this parameter will be null.
Note that the value of this parameter is irrespective of the value of the ConnectionInfo.enableControlLinkHandling
one.