Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server
Class SimpleDispatcher

java.lang.Object
  extended by org.jboss.errai.bus.server.SimpleDispatcher
All Implemented Interfaces:
RequestDispatcher

public class SimpleDispatcher
extends Object
implements RequestDispatcher

Simple request dispatcher implementation.

See Also:
AsyncDispatcher

Constructor Summary
SimpleDispatcher(ErraiService svc)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDispatcher

@Inject
public SimpleDispatcher(ErraiService svc)
Method Detail

dispatchGlobal

public void dispatchGlobal(Message message)
Description copied from interface: RequestDispatcher
Dispatches a message to all global listeners on the bus

Specified by:
dispatchGlobal in interface RequestDispatcher
Parameters:
message - - a message to dispatch globally

dispatch

public void dispatch(Message message)
Description copied from interface: RequestDispatcher
Dispatches a message to a single receiver on the bus

Specified by:
dispatch in interface RequestDispatcher
Parameters:
message - - a message to dispatch

Errai 3.0.1-SNAPSHOT

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