com.lmax.api.heartbeat
Interface HeartbeatCallback


public interface HeartbeatCallback

Called back when a request for heartbeat succeeds or fails.


Method Summary
 void onFailure(FailureResponse failureResponse)
          Called when failure occurs.
 void onSuccess(java.lang.String token)
          Return the user specified token, when successful.
 

Method Detail

onSuccess

void onSuccess(java.lang.String token)
Return the user specified token, when successful.

Parameters:
token - The user specified token.

onFailure

void onFailure(FailureResponse failureResponse)
Called when failure occurs.

Parameters:
failureResponse - Contains information about the failure.