com.gain.rateservice
Interface RateServiceListener


public interface RateServiceListener

RateServiceListener Provides the call back methods called by the Rates Service


Method Summary
 void OnRateServiceConnected()
          OnRateServiceConnected() - Called when the Rate service connects to the Rate Server and the connection has been authenicated.
 void OnRateServiceConnectionFailed(java.lang.Exception e)
          OnRateServiceConnectionFailed(Exception e) - Called when the Rate service fails to connect to the Rate Server with the Exception that caused the failure.
 void OnRateServiceConnectionLost(java.lang.Exception e)
          OnRateServiceConnectionLost(Exception e) - Called when the Rate service connection to the Rate Server is lost with the Exception that causes the loss.
 void OnRateServiceDisconnected()
          OnRateServiceDisconnected() - Called when the Rate service has been disconnected from the Rate Server after a client disconnect request
 void OnRateServiceRate(Rate rate)
          OnRateServiceRate( Rate rate ) - Called when a rate is updated
 

Method Detail

OnRateServiceConnected

public void OnRateServiceConnected()
OnRateServiceConnected() - Called when the Rate service connects to the Rate Server and the connection has been authenicated.

OnRateServiceConnectionFailed

public void OnRateServiceConnectionFailed(java.lang.Exception e)
OnRateServiceConnectionFailed(Exception e) - Called when the Rate service fails to connect to the Rate Server with the Exception that caused the failure.
Parameters:
e - Exception which caused the lost connection.

OnRateServiceConnectionLost

public void OnRateServiceConnectionLost(java.lang.Exception e)
OnRateServiceConnectionLost(Exception e) - Called when the Rate service connection to the Rate Server is lost with the Exception that causes the loss.
Parameters:
e - Exception which caused the lost connection.

OnRateServiceDisconnected

public void OnRateServiceDisconnected()
OnRateServiceDisconnected() - Called when the Rate service has been disconnected from the Rate Server after a client disconnect request

OnRateServiceRate

public void OnRateServiceRate(Rate rate)
OnRateServiceRate( Rate rate ) - Called when a rate is updated
Parameters:
rate - The rate which is updating