public class

TraceConfig

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

Class Overview

轨迹配置

Summary

Nested Classes
class TraceConfig.Builder  
Constants
int DEFAULT_MAX_CACHE_COUNT
int DEFAULT_PACK_INTERVAL
int DEFAULT_TRACE_INTERVAL
Fields
public static final TracePointSource.Provider DEFAULT_PROVIDER
Public Methods
int getMaxCacheCount()
获取轨迹最大缓存数量
int getPackInterval()
获取上报频率
TracePointSource.Provider getProviderType()
获取定位模式
int getTraceInterval()
获取采集频率
static TraceConfig.Builder newBuilder()
新建构建器
static TraceConfig.Builder newBuilder(TraceConfig config)
新建构建器
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DEFAULT_MAX_CACHE_COUNT

Constant Value: 36000 (0x00008ca0)

public static final int DEFAULT_PACK_INTERVAL

Constant Value: 5 (0x00000005)

public static final int DEFAULT_TRACE_INTERVAL

Constant Value: 1 (0x00000001)

Fields

public static final TracePointSource.Provider DEFAULT_PROVIDER

Public Methods

public int getMaxCacheCount ()

获取轨迹最大缓存数量

Returns
  • 轨迹最大缓存数量

public int getPackInterval ()

获取上报频率

Returns
  • 上报频率,单位s

public TracePointSource.Provider getProviderType ()

获取定位模式

Returns
  • 定位模式

public int getTraceInterval ()

获取采集频率

Returns
  • 采集频率,单位s

public static TraceConfig.Builder newBuilder ()

新建构建器

Returns

public static TraceConfig.Builder newBuilder (TraceConfig config)

新建构建器

Parameters
config 已有配置
Returns

public String toString ()