|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.client.NullBackoffStrategy
public class NullBackoffStrategy
This is a ConnectionBackoffStrategy that never backs off,
for compatibility with existing behavior.
| Constructor Summary | |
|---|---|
NullBackoffStrategy()
|
|
| Method Summary | |
|---|---|
boolean |
shouldBackoff(org.apache.http.HttpResponse resp)
Determines whether receiving the given HttpResponse as
a result of request execution should result in a backoff
signal. |
boolean |
shouldBackoff(java.lang.Throwable t)
Determines whether seeing the given Throwable as
a result of request execution should result in a backoff
signal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullBackoffStrategy()
| Method Detail |
|---|
public boolean shouldBackoff(java.lang.Throwable t)
ConnectionBackoffStrategyThrowable as
a result of request execution should result in a backoff
signal.
shouldBackoff in interface ConnectionBackoffStrategyt - the Throwable that happened
true if a backoff signal should be
givenpublic boolean shouldBackoff(org.apache.http.HttpResponse resp)
ConnectionBackoffStrategyHttpResponse as
a result of request execution should result in a backoff
signal. Implementations MUST restrict themselves to examining
the response header and MUST NOT consume any of the response
body, if any.
shouldBackoff in interface ConnectionBackoffStrategyresp - the HttpResponse that was received
true if a backoff signal should be
given
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||