(Quick Reference)

removeListeners(String listenerIdPattern)

Available in Controllers, Domains and Services

Remove listeners using the pattern argument. The pattern should at least contains the topic information. It returns an int number of removed listeners.


{docx} //remove every listeners in TestService removeListeners("*:my.TestService") {docx}


listenerIdPatternA pattern to match against when finding listeners in registry.

Registered listeners generate a unique id (ListenerId) applying the following pattern :