public static class ThinkingDataAnalytics.BatchConsumer.Config extends Object
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
void |
setAutoFlush(boolean autoFlush) |
void |
setBatchSize(int batchSize) |
void |
setCompress(String compress) |
void |
setInterval(int interval) |
void |
setMaxCacheSize(int maxCacheSize) |
void |
setThrowException(boolean isThrowException) |
void |
setTimeout(int timeout) |
public void setBatchSize(int batchSize)
batchSize - BatchConsumer的flush条数,缓存数目public void setInterval(int interval)
interval - 自动发送间隔,单位秒public void setCompress(String compress)
compress - BatchConsumer的压缩方式public void setTimeout(int timeout)
public void setAutoFlush(boolean autoFlush)
public void setMaxCacheSize(int maxCacheSize)
public void setThrowException(boolean isThrowException)
Copyright © 2022. All rights reserved.