Class TrackingPluginConfig
java.lang.Object
growthbook.sdk.java.plugin.tracking.TrackingPluginConfig
Configuration for
GrowthBookTrackingPlugin. Defaults mirror the
GrowthBook Go SDK: POST {ingestorHost}/events, batch size 100,
flush every 10 seconds.
Settings with defaults are exposed only through their resolved*()
accessors so callers always read the effective value; the raw nullable
fields are intentionally not exposed.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Client key (SDK connection key).Optional executor used to POST batches off the caller thread.okhttp3.OkHttpClientOptional HTTP client override.int
-
Field Details
-
DEFAULT_INGESTOR_HOST
- See Also:
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE- See Also:
-
MAX_BATCH_SIZE
public static final int MAX_BATCH_SIZE- See Also:
-
DEFAULT_BATCH_TIMEOUT
-
DEFAULT_CLOSE_TIMEOUT
-
-
Method Details
-
resolvedIngestorHost
-
resolvedBatchSize
public int resolvedBatchSize() -
resolvedBatchTimeout
-
resolvedCloseTimeout
-
builder
-
getClientKey
Client key (SDK connection key). If blank the plugin becomes a no-op — it will not make HTTP requests butGrowthBookTrackingPlugin.close()still completes cleanly. -
getHttpClient
@Nullable public okhttp3.OkHttpClient getHttpClient()Optional HTTP client override. Defaults to a fresh OkHttpClient. -
getFlushExecutor
Optional executor used to POST batches off the caller thread. Defaults to a single-thread daemon executor created by the plugin.
-