public static final class SplitClientConfig.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SplitClientConfig |
build() |
SplitClientConfig.Builder |
connectionTimeout(int ms)
Http client connection timeout.
|
SplitClientConfig.Builder |
enableDebug() |
SplitClientConfig.Builder |
endpoint(String endpoint,
String eventsEndpoint)
The rest endpoint that sdk will hit for latest features and segments.
|
SplitClientConfig.Builder |
featuresRefreshRate(int seconds)
The SDK will poll the endpoint for changes to features at this period.
|
SplitClientConfig.Builder |
impressionsQueueSize(int impressionsQueueSize)
The treatment log captures the which key saw what treatment ("on", "off", etc)
at what time.
|
SplitClientConfig.Builder |
impressionsRefreshRate(int seconds)
The treatment log captures the which key saw what treatment ("on", "off", etc)
at what time.
|
SplitClientConfig.Builder |
metricsRefreshRate(int seconds)
The diagnostic metrics collected by the SDK are pushed back to split endpoint
at this period.
|
SplitClientConfig.Builder |
readTimeout(int ms)
Http client read timeout.
|
SplitClientConfig.Builder |
ready(int milliseconds)
The SDK kicks off background threads to download data necessary
for using the SDK.
|
SplitClientConfig.Builder |
segmentsRefreshRate(int seconds)
The SDK will poll the endpoint for changes to segments at this period in seconds.
|
public SplitClientConfig.Builder endpoint(String endpoint, String eventsEndpoint)
endpoint - MUST NOT be nullpublic SplitClientConfig.Builder featuresRefreshRate(int seconds)
Implementation Note: The SDK actually polls at a random interval chosen between (0.5 * n, n). This is to ensure that SDKs that are deployed simultaneously on different machines do not inundate the backend with requests at the same interval.
seconds - MUST be greater than 0. Default value is 60.public SplitClientConfig.Builder segmentsRefreshRate(int seconds)
Implementation Note: The SDK actually polls at a random interval chosen between (0.5 * n, n). This is to ensure that SDKs that are deployed simultaneously on different machines do not inundate the backend with requests at the same interval.
seconds - MUST be greater than 0. Default value is 60.public SplitClientConfig.Builder impressionsRefreshRate(int seconds)
seconds - MUST be > 0.public SplitClientConfig.Builder impressionsQueueSize(int impressionsQueueSize)
impressionsQueueSize - MUST be > 0. Default is 5000.public SplitClientConfig.Builder metricsRefreshRate(int seconds)
seconds - MUST be > 0.public SplitClientConfig.Builder connectionTimeout(int ms)
ms - MUST be greater than 0.public SplitClientConfig.Builder readTimeout(int ms)
ms - MUST be greater than 0.public SplitClientConfig.Builder enableDebug()
public SplitClientConfig.Builder ready(int milliseconds)
milliseconds - MUST BE greater than or equal to 0;public SplitClientConfig build()
Copyright © 2016. All rights reserved.