snowplow / snowplow-java-tracker

Snowplow event tracker for Java. Add analytics to your Java desktop and server apps, servlets and games. (See also: snowplow-android-tracker)
http://snowplowanalytics.com
Apache License 2.0
24 stars 36 forks source link

Add support for callbacks for success/failure #57

Closed alexanderdean closed 10 years ago

alexanderdean commented 10 years ago

Using an inner class? This is functionality which exists in the Python Tracker - @fblundun can explain more...

fblundun commented 10 years ago

https://github.com/snowplow/snowplow-python-tracker/blob/master/snowplow_tracker/emitters.py#L169-174

The idea is that when you create an emitter you can provide on_success and on_failure callback functions.

Whenever the buffer tries to flush:

Does that make sense?

jonalmeida commented 10 years ago

Makes sense, thanks!

alexanderdean commented 10 years ago

Nice collaboration guys