-
public final class TorHttpConfig extends HttpClientEngineConfig
-
-
Field Summary
Fields Modifier and Type Field Description private TorClienttorprivate IntegerretryLimitprivate CoroutineDispatcherdispatcherprivate Booleanpipeliningprivate Proxyproxyprivate IntegerthreadsCount
-
Constructor Summary
Constructors Constructor Description TorHttpConfig()
-
Method Summary
Modifier and Type Method Description final TorClientgetTor()Specifies the Tor client to use for this HTTP engine. final UnitsetTor(TorClient tor)Specifies the Tor client to use for this HTTP engine. final IntegergetRetryLimit()Specified the maximum number of times that a failed request should be retried. final UnitsetRetryLimit(Integer retryLimit)Specified the maximum number of times that a failed request should be retried. final CoroutineDispatchergetDispatcher()final UnitsetDispatcher(CoroutineDispatcher dispatcher)final BooleangetPipelining()final UnitsetPipelining(Boolean pipelining)final ProxygetProxy()final UnitsetProxy(Proxy proxy)final IntegergetThreadsCount()final UnitsetThreadsCount(Integer threadsCount)-
-
Method Detail
-
getRetryLimit
final Integer getRetryLimit()
Specified the maximum number of times that a failed request should be retried. Set this property to
0to disable retries.
-
setRetryLimit
final Unit setRetryLimit(Integer retryLimit)
Specified the maximum number of times that a failed request should be retried. Set this property to
0to disable retries.
-
getDispatcher
final CoroutineDispatcher getDispatcher()
-
setDispatcher
final Unit setDispatcher(CoroutineDispatcher dispatcher)
-
getPipelining
final Boolean getPipelining()
-
setPipelining
final Unit setPipelining(Boolean pipelining)
-
getThreadsCount
final Integer getThreadsCount()
-
setThreadsCount
final Unit setThreadsCount(Integer threadsCount)
-
-
-
-