com.gain.rateservice
Interface RateServiceListener


public interface RateServiceListener

RateServiceListener Provides the call back methods called by the Rates Service


Method Summary
 void OnConnected()
          OnConnected() - Called when rates services connected to Rate Services and the connection has been authenicated.
 void OnConnectionFailed(java.lang.Exception e)
          OnConnectionFailed(Exception e) - Called when rates services fails to connect to Rate Services with the Exception causes failure.
 void OnConnectionLost(java.lang.Exception e)
          OnConnectionLost(Exception e) - Called when rates services connection to Rate Services is lost with the Exception causes loss.
 void OnDisconnected()
          OnDisconnected() - Called when rates services has been disconnected from the Rate Services after a client request
 void OnRate(Rate rate)
          OnRate( Rate rate ) - Called when a rate is updated
 

Method Detail

OnConnected

public void OnConnected()
OnConnected() - Called when rates services connected to Rate Services and the connection has been authenicated.

OnConnectionFailed

public void OnConnectionFailed(java.lang.Exception e)
OnConnectionFailed(Exception e) - Called when rates services fails to connect to Rate Services with the Exception causes failure.
Parameters:
e - Exception which caused the lost connection.

OnConnectionLost

public void OnConnectionLost(java.lang.Exception e)
OnConnectionLost(Exception e) - Called when rates services connection to Rate Services is lost with the Exception causes loss.
Parameters:
e - Exception which caused the lost connection.

OnDisconnected

public void OnDisconnected()
OnDisconnected() - Called when rates services has been disconnected from the Rate Services after a client request

OnRate

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