@Immutable public final class RetryCarefulWire extends Object implements com.jcabi.http.Wire
IOExceptionretries a few times before giving up and rethrowing the exception.
Just a wrapper for a
RetryWire that wraps a
CarefulWire that wraps the underlying wire.
You can use
RetryCarefulWire with a
Github github = new RtGithub( new RtGithub().entry().through(RetryCarefulWire.class, 50) );
|Constructor and Description|
|Modifier and Type||Method and Description|
public RetryCarefulWire(com.jcabi.http.Wire wire, int threshold)
wire- Original wire
threshold- Threshold of number of remaining requests, below which requests are blocked until reset
Copyright © 2012–2018 jcabi.com. All rights reserved.