@FunctionalInterface
public interface LSConnectionListener
Methods of this interface are called during LSConnectionFactory.createConnection()
and
LSConnectionFactory.createContext()
calls (and equivalent calls of its subclasses LSQueueConnectionFactory
and LSTopicConnectionFactory
) as processing of JMS connection
proceeds.
Modifier and Type | Method and Description |
---|---|
void |
onLSClient(LightstreamerClient lsClient)
Event that will be invoked when the embedded
LightstreamerClient instance has been
created and initialized, but before opening the connection. |
void onLSClient(LightstreamerClient lsClient)
LightstreamerClient
instance has been
created and initialized, but before opening the connection.
This event offers the possibility to further customize the LightstreamerClient
instance before the connection is issued. It can also be used to attach listeners to the given
instance.
Note that this method is called synchronously inside the factory methods (i.e. it executes
before the LSConnectionFactory.createConnection()
method ends).
lsClient
- the client instance that will be used to connect to the JMS Extender.