Errai 3.0.1-SNAPSHOT

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

All Known Implementing Classes:
AsyncDispatcher, RequestDispatcherProxy, SimpleDispatcher

public interface RequestDispatcher

The RequestDispatcher interface provides a way to create a message delivery system into the bus


Method Summary
 void dispatch(Message message)
          Dispatches a message to a single receiver on the bus
 void dispatchGlobal(Message message)
          Dispatches a message to all global listeners on the bus
 

Method Detail

dispatchGlobal

void dispatchGlobal(Message message)
                    throws Exception
Dispatches a message to all global listeners on the bus

Parameters:
message - - a message to dispatch globally
Throws:
Exception - throws an InterruptedException specifically, if the thread is interrupted while trying to offer a message to the worker queue. This isn't specifically exposed here due to the fact that InterruptedException is not exposed to the GWT client library.

dispatch

void dispatch(Message message)
              throws Exception
Dispatches a message to a single receiver on the bus

Parameters:
message - - a message to dispatch
Throws:
Exception - throws an InterruptedException specifically, if the thread is interrupted while trying to offer a message to the worker queue. This isn't specifically exposed here due to the fact that InterruptedException is not exposed to the GWT client library.

Errai 3.0.1-SNAPSHOT

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