|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.bus.server.AsyncDispatcher
public class AsyncDispatcher
The AsyncDispatcher provides asynchronous message delivery into the bus. This means that incoming remote requests do not block, and processing of the request continues even after the incoming network conversation has ended.
This dispatcher implementation can be used with theDefaultBlockingServlet
as this pertains to incoming--as opposed to outgoing--message handling. Note: some appservers or servlet environments
may restrict thread creation within the container, in which case this implementation cannot be used.
Constructor Summary | |
---|---|
AsyncDispatcher(ErraiService service)
Constructs the AsyncDispatcher with the specified service. |
Method Summary | |
---|---|
void |
dispatch(Message message)
Dispatches a message to a single receiver on the bus |
void |
dispatchGlobal(Message message)
Sends the message globally. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public AsyncDispatcher(ErraiService service)
service
- the service where the bus is locatedMethod Detail |
---|
public void dispatchGlobal(Message message) throws InterruptedException
dispatchGlobal
in interface RequestDispatcher
message
- a message to dispatch globally
InterruptedException
public void dispatch(Message message) throws InterruptedException
RequestDispatcher
dispatch
in interface RequestDispatcher
message
- a message to dispatch
InterruptedException
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |