Server SDKv1.0.0MIT License
Java SDK
com.acai:acai-java-sdk is the server-side Java SDK. It uses a thread-safe event queue with configurable retries and an optional middleware pipeline.
Installation
Gradle:
Maven:
Initialise
For multiple isolated instances:
Track events
Identify users
Config reference
| Method | Default | Description |
|---|---|---|
setServerUrl(url) | https://your-acai-server.com/2/httpapi | Collector endpoint. |
useBatchMode(bool) | false | Use the /batch endpoint. |
setEventUploadThreshold(n) | 10 | Event count before flush. |
setEventUploadPeriodMillis(ms) | 10000 | Time-based flush interval. |
setLogMode(LogMode) | ERROR | OFF · ERROR · WARN · DEBUG |
setProxy(Proxy) | Proxy.NO_PROXY | Custom HTTPS proxy. |
setCallbacks(cb) | — | Global event result callback. |
