public interface MulticastReceiverRegistry
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getReceivers()
Obtain a map representing all currently registered receivers.
|
Set<String> |
getReceivers(String multicastId)
Obtains the current set of participant IDs of the those receivers interested in the given multicast.
|
void |
registerMulticastReceiver(String multicastId,
String participantId)
Add an interested receiver's participant ID to the set of those interested for the given
multicast ID.
|
void |
unregisterMulticastReceiver(String multicastId,
String participantId)
This method is the reverse operation of
registerMulticastReceiver(String, String) and will
remove an interested participant from the set of those interested in the given multicast. |
void registerMulticastReceiver(String multicastId, String participantId)
multicastId - the ID of the multicast the receiver is interested in.participantId - the participant ID of the receiver interested in the multicast.void unregisterMulticastReceiver(String multicastId, String participantId)
registerMulticastReceiver(String, String) and will
remove an interested participant from the set of those interested in the given multicast.multicastId - the ID of the multicast the participant is no longer interested in.participantId - the ID of the participant wanting to remove themselves from the set of interested receiers.Set<String> getReceivers(String multicastId)
multicastId - the ID of the multicast for which to obtain the set of interested receivers.Copyright © 2021. All rights reserved.