public static class

TraceConfig.Builder

extends Object
java.lang.Object
   ↳ com.tencent.trackx.api.trace.TraceConfig.Builder

Summary

Public Methods
TraceConfig build()
TraceConfig.Builder maxCacheCount(int count)
设置轨迹最大缓存数量
TraceConfig.Builder packInterval(int interval)
设置上报频率
TraceConfig.Builder traceInterval(int interval)
设置采集频率
TraceConfig.Builder tracePointProvider(TracePointSource.Provider provider)
设置定位模式
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public TraceConfig build ()

public TraceConfig.Builder maxCacheCount (int count)

设置轨迹最大缓存数量

Parameters
count 轨迹最大缓存数量,最少为1000个点
Returns
  • this

public TraceConfig.Builder packInterval (int interval)

设置上报频率

Parameters
interval 上报频率,单位s,范围:5-1800
Returns
  • this

public TraceConfig.Builder traceInterval (int interval)

设置采集频率

Parameters
interval 采集频率,单位s,范围:1-60
Returns
  • this

public TraceConfig.Builder tracePointProvider (TracePointSource.Provider provider)

设置定位模式

Parameters
provider 定位模式 TracePointSource.Provider
Returns
  • this