public interface JCSMPReconnectEventHandler
JCSMPReconnectEventHandler
is a callback interface called before
and after the subscriber data channel is reestablished.
Through the implementation of JCSMPReconnectEventHandler
,
applications can execute a list of actions before and after JCSMP attempts to
reestablish the connection.
Refer to
JCSMPSession.getMessageConsumer(JCSMPReconnectEventHandler, XMLMessageListener)
for more details.
Modifier and Type | Method and Description |
---|---|
void |
postReconnect()
Called after each reconnection.
|
boolean |
preReconnect()
Called before each reconnection attempt.
|
boolean preReconnect() throws JCSMPException
It is not permitted to call session operations from this callback, as those would block until the reconnection completes and cause a deadlock.
JCSMPException
- upon errorvoid postReconnect() throws JCSMPException
It is permitted to call session operations in this callback.
JCSMPException
- upon errorCopyright 2004-2024 Solace Corporation. All rights reserved.