123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
- <title>RetryInterceptor</title>
- <link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
- <body>
- <div id="container">
- <div id="leftColumn"><a href="../../../index.html">
- <div id="logo"></div>
- </a>
- <div id="paneSearch"></div>
- <div id="sideMenu"></div>
- </div>
- <div id="main">
- <div id="leftToggler"><span class="icon-toggler"></span></div>
- <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.interceptor/RetryInterceptor///PointingToDeclaration//1281733757">
- <div class="navigation-wrapper" id="navigation-wrapper">
- <div class="breadcrumbs"><a href="../../../index.html">Net</a>/<a href="../index.html">com.drake.net.interceptor</a>/<a href="index.html">RetryInterceptor</a></div>
- <div class="pull-right d-flex">
- <div id="searchBar"></div>
- </div>
- </div>
- <div class="cover ">
- <h1 class="cover"><span>Retry</span><wbr></wbr><span>Interceptor</span></h1>
- <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">class <a href="index.html">RetryInterceptor</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/IntRange.html">IntRange</a>(<span>from = <span class="breakable-word">1.toLong()</span></span><wbr></wbr>) </span>retryCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>) : <span data-unresolved-link="okhttp3/Interceptor///PointingToDeclaration/">Interceptor</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">重试次数拦截器 OkHttp自带重试请求规则, 本拦截器并不推荐使用 因为长时间阻塞用户请求是不合理的, 发生错误请让用户主动重试, 例如显示缺省页或者提示</p></div></div>
- </div>
- <div class="tabbedcontent">
- <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Constructors">Constructors</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
- <div class="tabs-section-body">
- <h2 class="tabbedcontent">Constructors</h2>
- <div class="table" data-togglable="Constructors"><a data-name="599687797%2FConstructors%2F1281733757" anchor-label="RetryInterceptor" id="599687797%2FConstructors%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue TabbedContent">
- <div class=""><span class="inline-flex"><a href="-retry-interceptor.html">RetryInterceptor</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="599687797%2FConstructors%2F1281733757"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="-retry-interceptor.html">RetryInterceptor</a>(<span>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/IntRange.html">IntRange</a>(<span>from = <span class="breakable-word">1.toLong()</span></span><wbr></wbr>) </span>retryCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 3)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <h2 class="">Functions</h2>
- <div class="table" data-togglable="Functions"><a data-name="-59420059%2FFunctions%2F1281733757" anchor-label="intercept" id="-59420059%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="intercept.html">intercept</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-59420059%2FFunctions%2F1281733757"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
- <div>
- <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="intercept.html">intercept</a>(chain: <span data-unresolved-link="okhttp3/Interceptor.Chain///PointingToDeclaration/">Interceptor.Chain</span>): <span data-unresolved-link="okhttp3/Response///PointingToDeclaration/">Response</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <h2 class="">Properties</h2>
- <div class="table" data-togglable="Properties"><a data-name="1964553549%2FProperties%2F1281733757" anchor-label="retryCount" id="1964553549%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <div class=""><span class="inline-flex"><a href="retry-count.html">retryCount</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1964553549%2FProperties%2F1281733757"></span>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="1964553549%2FProperties%2F1281733757" anchor-label="retryCount" id="1964553549%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">var <a href="retry-count.html">retryCount</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a> = 3<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1964553549%2FProperties%2F1281733757" anchor-label="retryCount" id="1964553549%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>重试次数</div></div></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2023 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
- </div>
- </div>
- </body>
- </html>
|