avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Zeyliger <phi...@cloudera.com>
Subject Re: Setting a deadline on an RPC?
Date Thu, 19 Jul 2012 01:19:35 GMT
Hi Christophe,

We do this:

  private static <T> T createRpc(Class<T> klass, URL url, int
timeoutMillis) throws IOException {
    HttpTransceiver transceiver = new HttpTransceiver(url);
    transceiver.setTimeout(timeoutMillis);
    SpecificRequestor requestor = new SpecificRequestor(klass, transceiver);
    T client = SpecificRequestor.getClient(klass, requestor);
    return client;
  }


Cheers,

-- Philip


On Mon, Jul 2, 2012 at 12:21 PM, Christophe Taton <taton@wibidata.com>wrote:

> Hi,
> Is there a way to set a deadline on an RPC?
> I've been searching the list and in the code but I didn't find anything so
> far.
> Thanks!
> C.
>

Mime
View raw message