|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExampleSubscriber
public class ExampleSubscriber
Constructor Summary | |
---|---|
ExampleSubscriber()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
void |
onConnect()
Callback for connection. |
void |
onDisconnect()
Callback for disconnect. |
void |
onPriceUpdate(FXQuote fxQuote)
Callback for on price updates. |
void |
onSubscriptionError(java.lang.String currencyPair,
java.lang.String message)
Callback for when the server rejects a request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExampleSubscriber()
Method Detail |
---|
public void onConnect()
public void onDisconnect()
public void onPriceUpdate(FXQuote fxQuote)
FXPricingListener
onPriceUpdate
in interface FXPricingListener
fxQuote
- the FXQuote object containing the currency pair quotation.public void onSubscriptionError(java.lang.String currencyPair, java.lang.String message)
FXPricingListener
onSubscriptionError
in interface FXPricingListener
message
- the error message.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |