Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.api.messaging
Interface MessageListener


public interface MessageListener

Callback interface for observing every message on the bus before that message is sent to any message callbacks. A MessageListener can cancel delivery of a message.

If your goal is to implement security policies around messages to a particular subject, org.jboss.errai.bus.client.api.BooleanRoutingRule is a better choice than MessageListener.


Method Summary
 boolean handleMessage(Message message)
          Called by the Message Bus before the given message is routed to any MessageListeners.
 

Method Detail

handleMessage

boolean handleMessage(Message message)
Called by the Message Bus before the given message is routed to any MessageListeners.

Parameters:
message - The message being processed by the bus.
Returns:
true if delivery of message should be allowed to proceed; false if message must not be delivered.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.