public class GrowingAPI extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GrowingAPI.Builder |
| Modifier and Type | Method and Description |
|---|---|
static void |
initConfig(Properties properties)
如果需要自定义 Properties 进行配置初始化,则需要在 GrowingAPI 初始化之前调用 initConfig, 进行配置初始化.
|
static void |
initConfig(String configFilePath)
配置文件路径读取.
|
void |
send(GIOMessage msg)
添加埋点事件.
|
void |
sendMaybeRejected(GIOMessage msg)
添加埋点事件,当队列满时,可以抛出拒绝异常.
|
static void |
shutdown()
shutdown 将会依照配置信息,允许执行之前提交的任务直到完成或超时.
|
static void |
shutdownNow()
showdownNow 将会直接调用sdk中线程池的shutdownNow.
|
public void send(GIOMessage msg)
msg - the event message to uploadpublic void sendMaybeRejected(GIOMessage msg) throws GIOSendBeRejectedException
msg - the event msg to uploadGIOSendBeRejectedExceptionpublic static void initConfig(String configFilePath)
configFilePath - public static void initConfig(Properties properties)
properties - public static void shutdownNow()
public static void shutdown()
Copyright © 2022. All rights reserved.