|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.gain.rateservice.RateService
RateService Connects to the rates service on a separate thread and processes rates messages
Constructor Summary | |
RateService(RateServiceListener listener,
java.lang.String host,
int port,
java.lang.String key)
Constructs a Rates Service with the following parameters |
|
RateService(RateServiceListener listener,
java.lang.String host,
int port,
java.lang.String key,
boolean compactRates)
Constructs a Rates Service with the following parameters |
Method Summary | |
boolean |
connect()
Connect - connect the rate service |
boolean |
disconnect()
Disconnect- Disconnects the rate service. |
int |
getFailedConsecutiveCounnectionCount()
getFailedConsecutiveCounnectionCount |
int |
getFailedCounnectionCount()
getFailedConnectionCount |
int |
getSuccessfullCounnectionCount()
getSuccessfullConnectionCount |
static java.lang.String |
getVersion()
getVersion |
boolean |
isConnected()
IsConnected |
void |
run()
Worker Thread routine, connects to the host, processes/distributes rate messages |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RateService(RateServiceListener listener, java.lang.String host, int port, java.lang.String key)
listener
- Rate Listener to receive rate callbacks onhost
- Rate Server Host Addressport
- Rate Server Portkey
- Authentication key to usepublic RateService(RateServiceListener listener, java.lang.String host, int port, java.lang.String key, boolean compactRates)
listener
- Rate Listener to receive rate callbacks onhost
- Rate Server Host Addressport
- Rate Server Portkey
- Authentication key to usecompactRates
- Flag to indicate if compact rates should be usedMethod Detail |
public static java.lang.String getVersion()
public boolean connect()
public boolean disconnect()
public boolean isConnected()
public int getSuccessfullCounnectionCount()
public int getFailedCounnectionCount()
public int getFailedConsecutiveCounnectionCount()
public void run()
run
in interface java.lang.Runnable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |