org.fusesource.restygwt.client.dispatcher
Class DefaultDispatcher

java.lang.Object
  extended by org.fusesource.restygwt.client.dispatcher.DefaultDispatcher
All Implemented Interfaces:
Dispatcher

public class DefaultDispatcher
extends Object
implements Dispatcher

Some valuable ideas came from: http://turbomanage.wordpress.com/2010/07/12/caching -batching-dispatcher-for-gwt-dispatch/

Thanks David!

Especially: - Waiting if a particular request is already on the way (otherwise you end up having many requests on the same source.

Author:
rEyez, Hiram Chirino

Field Summary
static DefaultDispatcher INSTANCE
           
 
Constructor Summary
DefaultDispatcher()
           
 
Method Summary
 Request send(Method method, RequestBuilder builder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultDispatcher INSTANCE
Constructor Detail

DefaultDispatcher

public DefaultDispatcher()
Method Detail

send

public Request send(Method method,
                    RequestBuilder builder)
             throws RequestException
Specified by:
send in interface Dispatcher
Throws:
RequestException


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.