public interface KeenDetailedCallback extends KeenCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(KeenProject project,
java.lang.String eventCollection,
java.util.Map<java.lang.String,java.lang.Object> event,
java.util.Map<java.lang.String,java.lang.Object> keenProperties,
java.lang.Exception e)
Invoked when the requested operation fails.
|
void |
onSuccess(KeenProject project,
java.lang.String eventCollection,
java.util.Map<java.lang.String,java.lang.Object> event,
java.util.Map<java.lang.String,java.lang.Object> keenProperties)
Invoked when the requested operation succeeds.
|
onFailure, onSuccessvoid onSuccess(KeenProject project, java.lang.String eventCollection, java.util.Map<java.lang.String,java.lang.Object> event, java.util.Map<java.lang.String,java.lang.Object> keenProperties)
project - The project in which the event was published. If a default project has been set
on the client, this parameter may be null, in which case the default project
was used.eventCollection - The name of the collection in which the event was publishedevent - A Map that consists of key/value pairs. Keen naming conventions apply (see
docs). Nested Maps and lists are acceptable (and encouraged!).keenProperties - A Map that consists of key/value pairs to override default properties.
ex: "timestamp" -> Calendar.getInstance()void onFailure(KeenProject project, java.lang.String eventCollection, java.util.Map<java.lang.String,java.lang.Object> event, java.util.Map<java.lang.String,java.lang.Object> keenProperties, java.lang.Exception e)
project - The project in which the event was published. If a default project has been set
on the client, this parameter may be null, in which case the default project
was used.eventCollection - The name of the collection in which the event was publishedevent - A Map that consists of key/value pairs. Keen naming conventions apply (see
docs). Nested Maps and lists are acceptable (and encouraged!).keenProperties - A Map that consists of key/value pairs to override default properties.
ex: "timestamp" -> Calendar.getInstance()e - An exception indicating the cause of the failure.