Shutdown and Draining

Learn more about the default behavior of our SDK if the application shuts down unexpectedly.

By default the SDK sends out events over the network on a background thread. This means that some events might be lost if the application shuts down unexpectedly. The SDK provides mechanisms to cope with this.

The Java SDK automatically shuts down on JVM exit and waits shutdownTimeoutMillis milliseconds before that happens.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").