public interface MigratoryDataListener
| Modifier and Type | Method and Description |
|---|---|
void |
onMessage(MigratoryDataMessage message)
This method handles the messages received from the server for the subscribed subjects.
|
void |
onStatus(String status,
String info)
This method handles various status notifications.
|
void onMessage(MigratoryDataMessage message)
message - a \link MigratoryDataMessage \endlink messagevoid onStatus(String status, String info)
type parameter are:>/p>
\li \link MigratoryDataClient.NOTIFY_SERVER_UP \endlink indicates that the client successfully connected to the
MigratoryData server provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_SERVER_DOWN \endlink indicates that the client was unable to connect to the
MigratoryData server provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_DATA_SYNC \endlink indicates that, after a failover reconnection, the client
successfully synchronized the subject provided by the info parameter. Moreover, the client received
the messages published during the failover period for this subject
\li \link MigratoryDataClient.NOTIFY_DATA_RESYNC \endlink indicates that, after a failover reconnection, the
client successfully synchronized the subject provided by the info parameter. However, the client
have not received the potential messages published during the failover period for this subject, the client
behaving like a fresh client which just connected to the MigratoryData server
\li \link MigratoryDataClient.NOTIFY_CONNECT_OK \endlink indicates that the client - identified with the
token given in the argument of \link MigratoryDataClient.setEntitlementToken() \endlink - is allowed to connect
for the reason provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_CONNECT_DENY \endlink indicates that the client - identified with the
token given in the argument of \link MigratoryDataClient.setEntitlementToken() \endlink - is denied to connect
for the reason provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_SUBSCRIBE_ALLOW \endlink indicates that the client - identified with the
token given in the argument of \link MigratoryDataClient.setEntitlementToken() \endlink - is allowed to subscribe
to the subject provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_SUBSCRIBE_DENY \endlink indicates that the client - identified with the
token given in the argument of \link MigratoryDataClient.setEntitlementToken() \endlink - is not allowed to
subscribe to the subject provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_PUBLISH_OK \endlink indicates that the client successfully published the
message having the closure provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_PUBLISH_FAILED \endlink indicates that the client was unable to publish the
message with the closure provided by the info parameter
\li \link MigratoryDataClient.NOTIFY_PUBLISH_DENIED \endlink indicates that the client was not authorized to
publish the message with the closure provided by the info parameterstatus - the type of the status notificationinfo - the info of the status notificationCopyright © 2023. All rights reserved.