public class BatchCallerProvider implements Provider<BatchCaller> {
private static final RemoteServiceProxyFactory factory = new RemoteServiceProxyFactory();
@Override
public BatchCaller get() {
return new BatchCaller() {
private RpcBatchImpl batch = new RpcBatchImpl();
@Override
public <T> T call(RemoteCallback<?> callback, Class<T> remoteService) {
return call(callback, null, remoteService);