Constructor and Description |
---|
CMEChannel(CMEApplicationParam applicationParams) |
CMEChannel(CMEApplicationParam applicationParams,
FastChannelReader reader) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doNaturalRefresh(String secDesc,
long secID,
List<com.epam.fix.message.FIXFieldList> groupEntries) |
void |
findInstrumentBySecID(String secId,
SecurityDefinitionListener securityListener)
Finds instrument in channel.
|
void |
findInstrumentBySymbol(String symbol,
SecurityDefinitionListener securityListener)
Finds instrument in channel.
|
void |
findInstruments(SecurityDefinitionListener securityListener)
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 |
stopFindInstrumentBySecID(String secId,
SecurityDefinitionListener securityListener) |
void |
stopFindInstrumentBySymbol(String symbol,
SecurityDefinitionListener securityListener) |
void |
stopFindInstruments(SecurityDefinitionListener securityListener) |
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.
|
public CMEChannel(CMEApplicationParam applicationParams)
public CMEChannel(CMEApplicationParam applicationParams, FastChannelReader reader)
public void setInstrumentListener(InstrumentListener instrumentListener)
Channel
setInstrumentListener
in interface Channel
instrumentListener
- the instrument listenerpublic void setMessageListener(MessageListener messageListener)
Channel
setMessageListener
in interface Channel
messageListener
- the message listenerpublic void setErrorListener(ErrorListener errorListener)
Channel
setErrorListener
in interface Channel
errorListener
- the error listenerpublic void findInstruments(SecurityDefinitionListener securityListener) throws IOException
Channel
findInstruments
in interface Channel
securityListener
- the callback listener.IOException
- - if error occurredpublic void stopFindInstruments(SecurityDefinitionListener securityListener) throws IOException
IOException
public void findInstrumentBySymbol(String symbol, SecurityDefinitionListener securityListener) throws IOException
Channel
findInstrumentBySymbol
in interface Channel
symbol
- the symbolsecurityListener
- the listenerIOException
- - if error occurredpublic void stopFindInstrumentBySymbol(String symbol, SecurityDefinitionListener securityListener) throws IOException
IOException
public void findInstrumentBySecID(String secId, SecurityDefinitionListener securityListener) throws IOException
Channel
findInstrumentBySecID
in interface Channel
secId
- the security IdsecurityListener
- the listenerIOException
- - if error occurredpublic void stopFindInstrumentBySecID(String secId, SecurityDefinitionListener securityListener) throws IOException
IOException
public void subscribeAll() throws IOException
Channel
subscribeAll
in interface Channel
IOException
- - if error occurredpublic void unSubscribeAll() throws IOException
Channel
unSubscribeAll
in interface Channel
IOException
- - if error occurredpublic void subscribeSymbol(String symbol) throws IOException
Channel
subscribeSymbol
in interface Channel
symbol
- the symbolIOException
- - if error occurredpublic void unSubscribeSymbol(String symbol)
Channel
unSubscribeSymbol
in interface Channel
symbol
- the symbolpublic void subscribeSecId(String secId) throws IOException
Channel
subscribeSecId
in interface Channel
secId
- the security IDIOException
- - if error occurredpublic void unSubscribeSecId(String secId)
Channel
unSubscribeSecId
in interface Channel
secId
- the security IDpublic boolean subscribeChannel(String channelID) throws IOException
Channel
subscribeChannel
in interface Channel
channelID
- unique id of channelIOException
- - if error occurredpublic void unSubscribeChannel(String channelID) throws IOException
Channel
unSubscribeChannel
in interface Channel
channelID
- unique id of channelIOException
- - if error occurredpublic void subscribeSecGroup(String secGroup) throws IOException
Channel
subscribeSecGroup
in interface Channel
secGroup
- the security groupIOException
- - if error occurredpublic void unSubscribeSecGroup(String secGroup)
Channel
unSubscribeSecGroup
in interface Channel
secGroup
- the security groupprotected boolean doNaturalRefresh(String secDesc, long secID, List<com.epam.fix.message.FIXFieldList> groupEntries)
Copyright © 2000–2025 EPAM Systems. All rights reserved.