Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.client.framework
Interface RpcBatch<T>

Type Parameters:
T -

public interface RpcBatch<T>

Represents a batch for remote procedure calls. It's used to accumulate remote calls that will get executed in a single server round trip when flush() is called.

Author:
Christian Sadilek

Method Summary
 void addRequest(T request)
          Adds a request of type to the queue.
 void flush()
          Sends all accumulated requests in a single server round trip.
 

Method Detail

addRequest

void addRequest(T request)
Adds a request of type to the queue.

Parameters:
request - the request to send when flush() is called.

flush

void flush()
Sends all accumulated requests in a single server round trip.


Errai 3.0.1-SNAPSHOT

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