Older versions of the Java tracker had RequestCallback. Users could provide methods to call when events were successfully sent, or failed to send, via the RequestCallback interface. The onFailure() method could be given a list of Event objects, allowing the user to retrack them as if they were brand new. This was the only way to retry the requests.
Since v0.12.0, the Java tracker automatically retries events indefinitely. As part of the restructuring, RequestCallback was removed.
Callbacks can still be useful, however, so let's reinstate with a better implementation.
Older versions of the Java tracker had
RequestCallback
. Users could provide methods to call when events were successfully sent, or failed to send, via theRequestCallback
interface. TheonFailure()
method could be given a list ofEvent
objects, allowing the user to retrack them as if they were brand new. This was the only way to retry the requests.Since v0.12.0, the Java tracker automatically retries events indefinitely. As part of the restructuring,
RequestCallback
was removed.Callbacks can still be useful, however, so let's reinstate with a better implementation.