public void addMessageListener ( Class < ? extends Message > messageClass , MessageListener < Message > messageListener ) { addMessageListener ( messageListener . getChannelIdentifier ( ) , messageClass , messageListener ) ; }
Add a generic message listener to listen for a specific type of message . Useful if you want to combine several or more message handlers into one bucket .