public class ApplicationImpl extends Object implements Application, FastChannelReaderListener
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationListener |
applicationListener |
protected Map<String,List<Instrument>> |
channelInstruments |
protected static String |
DOUBLESUBSCRIBE |
protected List<Instrument> |
instruments |
protected Map<String,Instrument> |
instrumentsBySecDesc |
protected Map<Long,Instrument> |
instrumentsBySecID |
static int |
MAX_REVISION_DELTA |
static int |
MAX_UDP_MIX_DELTA |
| Constructor and Description |
|---|
ApplicationImpl(ApplicationParams params,
ApplicationListener applicationListener) |
ApplicationImpl(ApplicationParams params,
ApplicationListener applicationListener,
FastChannelReader reader) |
| Modifier and Type | Method and Description |
|---|---|
MDChannel |
findChannelByID(String channelID) |
ChannelContext |
getChannelContext(String channelID) |
List<MDChannel> |
getChannels() |
void |
onMessage(com.epam.fix.message.FIXFieldList message,
String channelID,
long firstSeqNumOfQueue34)
Invoked when fast channel received message.
|
void |
onMessage(String securityDesc,
long securityID,
com.epam.fix.message.FIXFieldList message,
MDChannel channel) |
void |
resolveInstrumentBySecID(long securityID,
SecurityDefinitionListener listener)
Subscribes to instrument replay by security ID
|
void |
resolveInstrumentBySecurityDescription(String securityDescription,
SecurityDefinitionListener listener)
Subscribes to instrument replay by security description
|
void |
resolveInstrumentBySecurityGroup(String securityGroup,
SecurityDefinitionListener listener)
Subscribes to instrument replay by security group
|
void |
resolveInstrumentBySymbol(String symbol,
SecurityDefinitionListener listener)
Subscribes to instrument replay by symbol
|
boolean |
resolveInstrumentsByChannelID(String channelID,
SecurityDefinitionListener listener)
Subscribes to instrument replay by channel ID
|
void |
riseOnRecoveryStopped(Instrument instrument,
RecoveryReason recoveryReason) |
void |
start()
Starts application.
|
void |
stop()
Stops application.
|
void |
stopChannelListener(String channelID,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by channel
|
void |
stopSecGroupListener(String securityGroup,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security group
|
void |
stopSecIDListener(long securityID,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security ID
|
void |
stopSecurityDescriptionListener(String securityDesc,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security description
|
void |
stopSymbolListener(String symbol,
SecurityDefinitionListener listener)
Unsubscribe from instrument replay by String
|
void |
subscribe(String symbol,
InstrumentListener listener,
RecoveryOptions recovery) |
boolean |
subscribeAll(InstrumentListener listener,
RecoveryOptions recoveryOptions)
Subscribes to the market data for all instruments on market
|
void |
subscribeAll(RecoveryOptions recoveryOptions)
Deprecated.
|
boolean |
subscribeByChannelID(MDChannel channel,
InstrumentListener listener,
RecoveryOptions recoveryOptions) |
boolean |
subscribeByChannelID(String channelID,
InstrumentListener listener,
RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security ID and channel info
|
void |
subscribeBySecurityDesc(String secDesc,
InstrumentListener instrumentListener,
RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security description
|
void |
subscribeBySecurityID(long secID,
InstrumentListener listener,
RecoveryOptions recovery) |
boolean |
subscribeBySecurityID(long secID,
String secDesc,
String channelID,
InstrumentListener listener,
RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security ID and channel info
|
void |
unsubscribe(String symbol) |
void |
unsubscribeAll()
Unsubscribe from all instruments
|
void |
unsubscribeByChannelID(String channelID,
InstrumentListener listener)
Unsubscribes from market data on channel.
|
void |
unsubscribeBySecDesc(String securityDesc)
Unsubscribes from instrument by security description
|
void |
unsubscribeBySecurityID(long securityID)
Unsubscribes from instrument by security ID
|
public static final int MAX_UDP_MIX_DELTA
public static final int MAX_REVISION_DELTA
protected static final String DOUBLESUBSCRIBE
protected final List<Instrument> instruments
protected final Map<String,List<Instrument>> channelInstruments
protected final Map<Long,Instrument> instrumentsBySecID
protected final Map<String,Instrument> instrumentsBySecDesc
protected ApplicationListener applicationListener
public ApplicationImpl(ApplicationParams params, ApplicationListener applicationListener)
public ApplicationImpl(ApplicationParams params, ApplicationListener applicationListener, FastChannelReader reader)
public ChannelContext getChannelContext(String channelID)
public void start()
Applicationstart in interface Applicationpublic void subscribe(String symbol, InstrumentListener listener, RecoveryOptions recovery)
subscribe in interface Applicationpublic void unsubscribe(String symbol)
unsubscribe in interface Applicationpublic void subscribeBySecurityDesc(String secDesc, InstrumentListener instrumentListener, RecoveryOptions recoveryOptions)
ApplicationsubscribeBySecurityDesc in interface Applicationpublic void unsubscribeBySecDesc(String securityDesc)
ApplicationunsubscribeBySecDesc in interface Applicationpublic void unsubscribeBySecurityID(long securityID)
ApplicationunsubscribeBySecurityID in interface Applicationpublic void subscribeBySecurityID(long secID,
InstrumentListener listener,
RecoveryOptions recovery)
public boolean subscribeBySecurityID(long secID,
String secDesc,
String channelID,
InstrumentListener listener,
RecoveryOptions recoveryOptions)
ApplicationsubscribeBySecurityID in interface Applicationpublic boolean subscribeByChannelID(String channelID, InstrumentListener listener, RecoveryOptions recoveryOptions)
ApplicationsubscribeByChannelID in interface Applicationpublic boolean subscribeByChannelID(MDChannel channel, InstrumentListener listener, RecoveryOptions recoveryOptions)
public void unsubscribeByChannelID(String channelID, InstrumentListener listener)
ApplicationunsubscribeByChannelID in interface ApplicationApplication.subscribeByChannelID(String, InstrumentListener, RecoveryOptions)public void resolveInstrumentBySymbol(String symbol, SecurityDefinitionListener listener)
ApplicationresolveInstrumentBySymbol in interface Applicationpublic void resolveInstrumentBySecurityDescription(String securityDescription, SecurityDefinitionListener listener)
ApplicationresolveInstrumentBySecurityDescription in interface Applicationpublic void resolveInstrumentBySecID(long securityID,
SecurityDefinitionListener listener)
ApplicationresolveInstrumentBySecID in interface Applicationpublic void resolveInstrumentBySecurityGroup(String securityGroup, SecurityDefinitionListener listener)
ApplicationresolveInstrumentBySecurityGroup in interface Applicationpublic boolean resolveInstrumentsByChannelID(String channelID, SecurityDefinitionListener listener)
ApplicationresolveInstrumentsByChannelID in interface Applicationpublic void stopSymbolListener(String symbol, SecurityDefinitionListener listener)
ApplicationstopSymbolListener in interface Applicationpublic void stopSecurityDescriptionListener(String securityDesc, SecurityDefinitionListener listener)
ApplicationstopSecurityDescriptionListener in interface Applicationpublic void stopSecIDListener(long securityID,
SecurityDefinitionListener listener)
ApplicationstopSecIDListener in interface Applicationpublic void stopSecGroupListener(String securityGroup, SecurityDefinitionListener listener)
ApplicationstopSecGroupListener in interface Applicationpublic void stopChannelListener(String channelID, SecurityDefinitionListener listener)
ApplicationstopChannelListener in interface Applicationpublic boolean subscribeAll(InstrumentListener listener, RecoveryOptions recoveryOptions)
ApplicationsubscribeAll in interface Application@Deprecated public void subscribeAll(RecoveryOptions recoveryOptions)
subscribeAll in interface Applicationpublic void unsubscribeAll()
ApplicationunsubscribeAll in interface Applicationpublic void onMessage(String securityDesc, long securityID, com.epam.fix.message.FIXFieldList message, MDChannel channel)
public void onMessage(com.epam.fix.message.FIXFieldList message,
String channelID,
long firstSeqNumOfQueue34)
FastChannelReaderListeneronMessage in interface FastChannelReaderListenermessage - the messagechannelID - the channel id witch received messagefirstSeqNumOfQueue34 - the first sequence in queuepublic void stop()
Applicationstop in interface Applicationpublic void riseOnRecoveryStopped(Instrument instrument, RecoveryReason recoveryReason)
Copyright © 2000–2025 EPAM Systems. All rights reserved.