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.
Usage
1 2 | //remove every listeners in TestService removeListeners( "*:my.TestService" ) |
Arguments
Name | Description |
---|---|
listenerIdPattern | A pattern to match against when finding listeners in registry. |
Registered listeners generate a unique id (ListenerId) applying the following pattern :
[namespace://]topic[:package.Class][#method][@hashcode]