public interface Channel
Modifier and Type | Method and Description |
---|---|
void |
findInstrumentBySecID(String secId,
SecurityDefinitionListener securityDefinitionListener)
Finds instrument in channel.
|
void |
findInstrumentBySymbol(String symbol,
SecurityDefinitionListener securityListener)
Finds instrument in channel.
|
void |
findInstruments(SecurityDefinitionListener securityDefinitionListener)
Finds all instrument in channel.
|
void |
setErrorListener(ErrorListener errorListener)
Sets error listener.
|
void |
setInstrumentListener(InstrumentListener instrumentListener)
Sets instrument listener.
|
void |
setMessageListener(MessageListener messageListener)
Sets message listener.
|
void |
stop()
Stop channel and close opened connections.
|
void |
subscribeAll()
Subscribe for all instruments.
|
boolean |
subscribeChannel(String channelID)
Subscribe to instruments on channel.
|
void |
subscribeSecGroup(String secGroup)
Subscribe to instrument.
|
void |
subscribeSecId(String secId)
Subscribe to instrument.
|
void |
subscribeSymbol(String symbol)
Subscribe to instrument.
|
void |
unSubscribeAll()
UnSubscribe from instruments.
|
void |
unSubscribeChannel(String channelID)
Unsubscribe from instruments on channel.
|
void |
unSubscribeSecGroup(String secGroup)
UnSubscribe to instrument.
|
void |
unSubscribeSecId(String secId)
UnSubscribe to instrument.
|
void |
unSubscribeSymbol(String symbol)
UnSubscribe from instrument.
|
void stop() throws IOException
IOException
- - if error occurredvoid setInstrumentListener(InstrumentListener instrumentListener)
instrumentListener
- the instrument listenervoid setMessageListener(MessageListener messageListener)
messageListener
- the message listenervoid setErrorListener(ErrorListener errorListener)
errorListener
- the error listenervoid findInstruments(SecurityDefinitionListener securityDefinitionListener) throws IOException
securityDefinitionListener
- the callback listener.IOException
- - if error occurredvoid findInstrumentBySymbol(String symbol, SecurityDefinitionListener securityListener) throws IOException
symbol
- the symbolsecurityListener
- the listenerIOException
- - if error occurredvoid findInstrumentBySecID(String secId, SecurityDefinitionListener securityDefinitionListener) throws IOException
secId
- the security IdsecurityDefinitionListener
- the listenerIOException
- - if error occurredvoid subscribeAll() throws IOException
IOException
- - if error occurredvoid unSubscribeAll() throws IOException
IOException
- - if error occurredvoid subscribeSymbol(String symbol) throws IOException
symbol
- the symbolIOException
- - if error occurredvoid unSubscribeSymbol(String symbol) throws IOException
symbol
- the symbolIOException
- - if error occurredvoid subscribeSecId(String secId) throws IOException
secId
- the security IDIOException
- - if error occurredvoid unSubscribeSecId(String secId) throws IOException
secId
- the security IDIOException
- - if error occurredvoid subscribeSecGroup(String secGroup) throws IOException
secGroup
- the security groupIOException
- - if error occurredvoid unSubscribeSecGroup(String secGroup) throws IOException
secGroup
- the security groupIOException
- - if error occurredboolean subscribeChannel(String channelID) throws IOException
channelID
- unique id of channelIOException
- - if error occurredvoid unSubscribeChannel(String channelID) throws IOException
channelID
- unique id of channelIOException
- - if error occurredCopyright © 2000-2017 EPAM Systems. All Rights Reserved.