io.keen.client.java
Interface KeenCallback

All Known Subinterfaces:
KeenDetailedCallback

public interface KeenCallback

An interface to allow callers to receive a callback on success or failure of an operation by the keen client. This is most helpful for asynchronous calls (to detect completion of the operation), but can also be used to be notified of failures, which are normally caught silently by the client to prevent application crashes.

Since:
2.0.0

Method Summary
 void onFailure(java.lang.Exception e)
          Invoked when the requested operation fails.
 void onSuccess()
          Invoked when the requested operation succeeds.
 

Method Detail

onSuccess

void onSuccess()
Invoked when the requested operation succeeds.


onFailure

void onFailure(java.lang.Exception e)
Invoked when the requested operation fails.

Parameters:
e - An exception indicating the cause of the failure.