-
Notifications
You must be signed in to change notification settings - Fork 7
Event Queue
Martin Treacy-Schwartz edited this page Jun 8, 2017
·
3 revisions
Whenever an event is added (and validated) it will be added to a local database queue.
Every 8 seconds the SDK will start a task for submitting queued events since last submit. This processing is done in a separate low-priority thread that will have minimum impact on performance. The payload is gzipped and will therefore only consume a small amount of bandwidth.
The interval can be changed the following way ('interval' argument needs to be in seconds):
<!-- Traditional way -->
gameanalytics.GameAnalytics.setEventProcessInterval(15);
<!-- Command queue -->
GameAnalytics("setEventProcessInterval", 15);
When a device is offline the events are still added to the queue. When the device is online it will submit.