public interface QConnectorAsync extends QConnector
| Modifier and Type | Method and Description |
|---|---|
QConnectorListener |
getConnectorListener() |
void |
subscribe(QConnectorDataListener listener,
String[] tables,
String[] symbols)
Subscribe and receive data via local QConnectorDataListener.
|
void |
subscribe(String handle,
String[] tables,
String[] symbols)
Subscribe and receive data via global QConnectorListener.
|
void |
unsubscribe(QConnectorDataListener listener)
Unsubscribe.
|
void |
unsubscribe(String handle)
Unsubscribe.
|
connect, disconnect, getHost, getPort, isConnected, reconnectOnErrorvoid subscribe(String handle, String[] tables, String[] symbols) throws QConnectorException
handle - Unique handle to identify received datatables - Tables to subscribesymbols - Symbols to subscribeQConnectorException - If the communication fails or the subscription is corruptvoid subscribe(QConnectorDataListener listener, String[] tables, String[] symbols) throws QConnectorException
listener - Listenertables - Table to subscribesymbols - Symbols to subscribeQConnectorException - If the communication fails or the subscription is corruptvoid unsubscribe(String handle)
handle - Unique handle to identify received datavoid unsubscribe(QConnectorDataListener listener)
listener - ListenerQConnectorListener getConnectorListener()
Copyright © 2012-2014. All Rights Reserved.