public interface MigratoryDataInteractiveListener extends MigratoryDataListener
Use the API method MigratoryDataClient.setListener(MigratoryDataListener) to register your interactive
listener implementation.
Note: The subscription events — consisting of the first subscribe and last unsubscribe events — applies only for
the subjects which match one of the wildcard subjects advertised with the API method
MigratoryDataClient.advertiseInteractiveSubjects(List), and provided that the Interactive Publishing
extension is enabled in the MigratoryData server, i.e. the parameter Extension.InteractivePublishing
of the MigratoryData server is set on true.
| Modifier and Type | Method and Description |
|---|---|
void |
onSubscribe(String subject)
Indicates that a first client has subscribed to the subject in the argument, across the entire MigratoryData cluster.
|
void |
onUnsubscribe(String subject)
Indicates that the last client subscribed to the subject in the argument, across the entire MigratoryData cluster, has unsubscribed.
|
onMessage, onStatusvoid onSubscribe(String subject)
subject - Subject subscribed by its first subscriber.void onUnsubscribe(String subject)
subject - Subject unsubscribed by its last subscriber.Copyright © 2024. All rights reserved.