Examples of ExponentialBackoff


Examples of com.google.api.client.util.ExponentialBackOff

   */
  protected void configure(final HttpRequest request) {
    request.getHeaders().setAuthorization(String.format("OAuth %s", token));
    request.setParser(new JsonObjectParser(jsonFactory));

    final ExponentialBackOff backoff = new ExponentialBackOff.Builder().setInitialIntervalMillis(500)
        .setMaxElapsedTimeMillis(60000).setMaxIntervalMillis(30000).setMultiplier(1.5)
        .setRandomizationFactor(0.5).build();
    request.setUnsuccessfulResponseHandler(new HttpBackOffUnsuccessfulResponseHandler(backoff));
  }
View Full Code Here

Examples of com.netflix.astyanax.retry.ExponentialBackoff

        ColumnFamily<String, String> cf = new ColumnFamily<String, String>(
                "DoesntExist", StringSerializer.get(), StringSerializer.get());
        try {
            MutationBatch m = keyspaceContext.getEntity()
                    .prepareMutationBatch()
                    .withRetryPolicy(new ExponentialBackoff(10, 3));
            m.withRow(cf, "Key1").putColumn("Column2", "Value2", null);
            m.execute();
            Assert.fail();
        } catch (ConnectionException e) {
            LOG.info(e.getMessage());
View Full Code Here

Examples of org.apache.cxf.ws.rm.policy.RMAssertion.ExponentialBackoff

        a.setInactivityTimeout(iat);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setInactivityTimeout(iat);
        assertTrue(PolicyUtils.equals(a, b));
       
        ExponentialBackoff eb = new RMAssertion.ExponentialBackoff();
        a.setExponentialBackoff(eb);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setExponentialBackoff(eb);
        assertTrue(PolicyUtils.equals(a, b));   
    }
View Full Code Here

Examples of org.apache.cxf.ws.rm.policy.RMAssertion.ExponentialBackoff

        a.setInactivityTimeout(iat);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setInactivityTimeout(iat);
        assertTrue(PolicyUtils.equals(a, b));
       
        ExponentialBackoff eb = new RMAssertion.ExponentialBackoff();
        a.setExponentialBackoff(eb);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setExponentialBackoff(eb);
        assertTrue(PolicyUtils.equals(a, b));   
    }
View Full Code Here

Examples of org.apache.cxf.ws.rm.policy.RMAssertion.ExponentialBackoff

        a.setInactivityTimeout(iat);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setInactivityTimeout(iat);
        assertTrue(PolicyUtils.equals(a, b));
       
        ExponentialBackoff eb = new RMAssertion.ExponentialBackoff();
        a.setExponentialBackoff(eb);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setExponentialBackoff(eb);
        assertTrue(PolicyUtils.equals(a, b));   
    }
View Full Code Here

Examples of org.apache.cxf.ws.rm.policy.RMAssertion.ExponentialBackoff

        a.setInactivityTimeout(iat);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setInactivityTimeout(iat);
        assertTrue(PolicyUtils.equals(a, b));
       
        ExponentialBackoff eb = new RMAssertion.ExponentialBackoff();
        a.setExponentialBackoff(eb);
        assertTrue(!PolicyUtils.equals(a, b));
        b.setExponentialBackoff(eb);
        assertTrue(PolicyUtils.equals(a, b));   
    }
View Full Code Here

Examples of org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff

     * @param rma The rmAssertion to set.
     */
    public void setRMAssertion(RMAssertion rma) {
        if (null == rma) {
            rma = new RMAssertion();
            rma.setExponentialBackoff(new ExponentialBackoff());
        }
        BaseRetransmissionInterval bri = rma.getBaseRetransmissionInterval();
        if (null == bri) {
            bri = new BaseRetransmissionInterval();
            rma.setBaseRetransmissionInterval(bri);
View Full Code Here

Examples of org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff

        a.setInactivityTimeout(iat);
        assertTrue(!RM10PolicyUtils.equals(a, b));
        b.setInactivityTimeout(iat);
        assertTrue(RM10PolicyUtils.equals(a, b));
       
        ExponentialBackoff eb = new RMAssertion.ExponentialBackoff();
        a.setExponentialBackoff(eb);
        assertTrue(!RM10PolicyUtils.equals(a, b));
        b.setExponentialBackoff(eb);
        assertTrue(RM10PolicyUtils.equals(a, b));   
    }
View Full Code Here

Examples of org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff

     * @param rma The rmAssertion to set.
     */
    public void setRMAssertion(RMAssertion rma) {
        if (null == rma) {
            rma = new RMAssertion();
            rma.setExponentialBackoff(new ExponentialBackoff());
        }
        BaseRetransmissionInterval bri = rma.getBaseRetransmissionInterval();
        if (null == bri) {
            bri = new BaseRetransmissionInterval();
            rma.setBaseRetransmissionInterval(bri);
View Full Code Here

Examples of org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff

     * @param rma The rmAssertion to set.
     */
    public void setRMAssertion(RMAssertion rma) {
        if (null == rma) {
            rma = new RMAssertion();
            rma.setExponentialBackoff(new ExponentialBackoff());
        }
        BaseRetransmissionInterval bri = rma.getBaseRetransmissionInterval();
        if (null == bri) {
            bri = new BaseRetransmissionInterval();
            rma.setBaseRetransmissionInterval(bri);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.