io.keen.client.java
Interface AddEventCallback


public interface AddEventCallback

An interface to simulate functional programming so that the KeenClient can notify you when an asynchronous HTTP request succeeds or fails.

Since:
1.0.0
Author:
dkador

Method Summary
 void onError(String responseBody)
          Invoked when adding the event fails.
 void onSuccess()
          Invoked when adding the event succeeds.
 

Method Detail

onSuccess

void onSuccess()
Invoked when adding the event succeeds.


onError

void onError(String responseBody)
Invoked when adding the event fails.

Parameters:
responseBody - The HTTP body of the response as a string.


Copyright © 2013 Keen IO. All Rights Reserved.