Class InMemoryMulticastReceiverRegistry

    • Constructor Detail

      • InMemoryMulticastReceiverRegistry

        @Inject
        public InMemoryMulticastReceiverRegistry​(MulticastWildcardRegexFactory multicastWildcardRegexFactory)
    • Method Detail

      • registerMulticastReceiver

        public void registerMulticastReceiver​(String multicastId,
                                              String participantId)
        Description copied from interface: MulticastReceiverRegistry
        Add an interested receiver's participant ID to the set of those interested for the given multicast ID. Calling this method repeatedly after the first invocation with the same values has no effect.
        Specified by:
        registerMulticastReceiver in interface MulticastReceiverRegistry
        Parameters:
        multicastId - the ID of the multicast the receiver is interested in.
        participantId - the participant ID of the receiver interested in the multicast.
      • getReceivers

        public Set<String> getReceivers​(String multicastId)
        Description copied from interface: MulticastReceiverRegistry
        Obtains the current set of participant IDs of the those receivers interested in the given multicast.
        Specified by:
        getReceivers in interface MulticastReceiverRegistry
        Parameters:
        multicastId - the ID of the multicast for which to obtain the set of interested receivers.
        Returns:
        the set of participant IDs interested in receiving the given multicast. Never null - if there are no interested receivers, an emtpy set is returned.