| Interface | Description |
|---|---|
| LongCostTrack |
当请求结束时,调用
LongCostTrack.close() 关闭追踪 |
| RetryPolicy |
| Class | Description |
|---|---|
| Scope |
自定义Scope,支持如下功能:
开启一个自定义的Scope,在Scope范围内,可以通过
Scope 各个方法读写数据
可以通过 Scope.supplyWithExistScope(com.github.phantomthief.scope.Scope, com.github.phantomthief.util.ThrowableSupplier<T, X>) 或者 Scope.runWithExistScope(com.github.phantomthief.scope.Scope, com.github.phantomthief.util.ThrowableRunnable<X>) 绑定已经存在的scope
举个栗子: |
| ScopeAsyncRetry |
支持
Scope 级联,并且支持单次调用独立设置超时的异步重试封装 |
| ScopeKey<T> |
强类型数据读写的封装
|
| ScopeUtils |
Copyright © 2019. All rights reserved.