public class CmeMdHandler extends Object
Constructor and Description |
---|
CmeMdHandler(String channelId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroupIdFilter(String groupId)
Add the Group ID filtering value.
|
void |
addSecurityIdFilter(int securityId)
Add the Security ID filtering value.
|
void |
addSymbolFilter(String symbol)
Add the Symbol filtering value.
|
void |
clearGroupIdFilters()
Removes all the Group ID filters.
|
void |
clearSecurityIdFilters()
Removes all the Security ID filters.
|
void |
clearSymbolFilters()
Removes all the Symbol filters.
|
BestBidAskTrackingOptions |
getBestBidAskTrackingOptions()
Get options to track best bids and asks.
|
BookUpdatedCallbackPolicy |
getBookUpdatedCallbackPolicy()
Gets book updated callbacks policy.
|
String |
getChannelConfigurationFile()
Get path to the CME Market Data Feed Channel configuration XML file.
|
String |
getChannelId()
Get CME Market Data Feed Channel ID.
|
biz.onixs.cme.sbe.ByteDecoder |
getDecoder()
Get SBE decoder.
|
int |
getDirectBookDefaultDepth()
Gets direct book default depth.
|
String |
getGcpCmeProjectId()
Get the CME Google Cloud Platform project id.
|
GcpContentOwner |
getGcpContentOwner()
Get the CME content owner.
|
boolean |
getGcpDeleteSubscriptions()
Get if Handler should delete subscription after stopping the corresponding feed.
|
GcpEnvironmentType |
getGcpEnvironmentType()
Get the CME environment type.
|
String |
getGcpKeyPath()
Get the path to the key file used by Google Cloud Platform connection.
|
int |
getGcpParallelPullCount()
Get the Google Cloud Platform parallel pull count.
|
String |
getGcpProjectId()
Get the Customer Google Cloud Platform project id.
|
int |
getImpliedBookDefaultDepth()
Gets implied book default depth.
|
int |
getIncrementalCacheSize()
Get incremental packets cache size.
|
static String |
getLicenseDirectory()
Gets path to directory where license file is located.
|
org.joda.time.DateTime |
getLicenseExpirationDate()
Get license expiration date.
|
static String |
getLicenseFile()
Gets license file name or absolute path to license.
|
NetworkInterface |
getLocalNetworkInterface()
Get local network interface that is used to receive UDP multicast packets.
|
NetworkInterface |
getLocalNetworkInterfaceA()
Get local network interface that is used to receive UDP multicast packets for "A" feeds.
|
NetworkInterface |
getLocalNetworkInterfaceB()
Get local network interface that is used to receive UDP multicast packets for "B" feeds.
|
static int |
getMaximumNumberOfQueuedIncrementalRefreshMessages()
Get Maximum number of queued Market Data Incremental Refresh (X) messages.
|
biz.onixs.cme.sbe.def.IMessageSchema |
getMessageSchema()
Get SBE message schema.
|
int |
getNumberOfQueuedIncrementalRefreshMessages() |
int |
getOutOfOrderIncrementalQueueSize() |
boolean |
getProcessMarketByOrderBooks()
True if handler should process Market By Order Books and use MBO Snapshots to recover (if configured).
|
boolean |
getProcessMarketByPriceBooks()
True if handler should process Market By Price Books and use Snapshots to recover (if configured).
|
ProtocolFamilyDetection |
getProtocolFamily()
Get IP protocol family.
|
ReceiveMode |
getReceiveMode()
Get IO receive mode.
|
int |
getReceiveTimeoutInMilliseconds()
Get amount of time a Handler will wait to receive data once a read operation is initiated.
|
boolean |
getRecoverSecurityDefinitionsOnGap()
Get the flag to recover the Security Definition messages each time when the message sequence gap is detected.
|
boolean |
getReportNoDataWarning()
Get report-no-data option.
|
String |
getSecurityDefinitionsCacheRoot()
Get path where security definition cache will be stored.
|
Set<String> |
getSecurityGroupFilters()
Get security group filters.
|
Set<Integer> |
getSecurityIdFilters()
Get security ID filters.
|
int |
getSocketBufferSize()
Get UDP socket buffer size in bytes.
|
HandlerState |
getState()
Get handler state.
|
Set<String> |
getSymbolFilters()
Get symbol filters.
|
boolean |
getTcpReplay()
Get option to use the TcpReplay Channel for recovery of missed messages.
|
int |
getTcpReplayMaximumGapSize()
Get maximum gap size, which be recovered via TCP Replay service.
|
String |
getTcpReplayPassword()
Get password or passphrase to be used in the Logon (35=A) message from customer to CME Tcp Replay service.
|
int |
getTcpReplayReconnectAttempts()
Get number of attempts to receive missed messages via CME Tcp Replay service.
|
int |
getTcpReplayReconnectIntervalInMilliseconds()
Get interval between attempts to receive missed messages via CME Tcp Replay service (in milliseconds).
|
int |
getTcpReplayRequestRate()
Get the rate of TCP Replay requests.
|
TcpReplayRequestRateExceededAction |
getTcpReplayRequestRateExceededAction()
Get an action on exceed Tcp Replay Request Rate.
|
int |
getTcpReplayTimeoutIntervalInMilliseconds()
Get timeout interval for CME Tcp Replay service (in milliseconds).
|
String |
getTcpReplayUsername()
Get user ID or username to be used in the Logon (35=A) message from customer to CME Tcp Replay service.
|
String |
getTemplateFile()
Get path to the CME SBE templates file.
|
UdpClientFactory |
getUdpClientFactory()
Get factory for creating custom UDP socket client.
|
boolean |
getUseGcp()
Get the flag to use or not Google Cloud Platform instead of the standard multicast data stream.
|
boolean |
getUseIncrementalFeedA()
Get the flag to use or not incremental feed "A".
|
boolean |
getUseIncrementalFeedB()
Get the flag to use or not incremental feed "B".
|
boolean |
getUseInstrumentReplayFeedA()
Get the flag to use or not Instrument Definition (UDP) Feed "A".
|
boolean |
getUseInstrumentReplayFeedB()
Get the flag to use or not Instrument Definition (UDP) Feed "B".
|
boolean |
getUseIpSourceFiltering()
Get if datagram source addresses should be filtered.
|
boolean |
getUseSnapshotFeedA()
Get the flag to use or not Market Recovery (UDP) Feed "A".
|
boolean |
getUseSnapshotFeedB()
Get the flag to use or not Market Recovery (UDP) Feed "B".
|
void |
registerConsolidatedBookUpdatedListener(ConsolidatedBookUpdatedListener listener)
Register handler for consolidated book updates processing.
|
void |
registerErrorListener(ErrorListener errorListener)
Register handler for error event processing.
|
void |
registerImpliedBookChangedListener(ImpliedBookChangedListener listener)
Register handler for implied book changes processing.
|
void |
registerImpliedBookUpdatedListener(ImpliedBookUpdatedListener listener)
Register handler for implied book updates processing.
|
void |
registerInfoListener(InfoListener infoListener)
Register handler for information event processing.
|
void |
registerLogReplayListener(ReplayListener listener)
Register handler for log replay event processing.
|
void |
registerMarketByOrderBookChangedListener(MarketByOrderBookChangedListener listener)
Register handler for market by order book changes processing.
|
void |
registerMarketByOrderBookUpdatedListener(MarketByOrderBookUpdatedListener listener)
Register handler for market by order book updates processing.
|
void |
registerMessageProcessingListener(MessageProcessingListener listener)
Register handler for received message processing.
|
void |
registerOrderIdListener(OrderIdListener listener)
Register handler for order ids processing.
|
void |
registerPacketGapDetectedListener(PacketGapDetectedListener listener)
Register handler for detected packet gap processing.
|
void |
registerPacketProcessingListener(PacketProcessingListener listener)
Register handler for received packet processing.
|
void |
registerRegularBookChangedListener(RegularBookChangedListener listener)
Register handler for regular book changes processing.
|
void |
registerRegularBookUpdatedListener(RegularBookUpdatedListener listener)
Register handler for regular book updates processing.
|
void |
registerRequestForQuoteListener(RequestForQuoteListener listener)
Register handler for quote request processing.
|
void |
registerSecurityDefinitionListener(SecurityDefinitionListener listener)
Register handler for security definitions processing.
|
void |
registerSecurityStatusListener(SecurityStatusChangedListener listener)
Register handler for security status processing.
|
void |
registerStateChangedListener(HandlerStateChangedListener listener)
Register handler for handler state changed event processing.
|
void |
registerStatisticsListener(StatisticsListener statisticsListener)
Register handler for statistics processing.
|
void |
registerTopOfTheConsolidatedBookUpdatedListener(TopOfTheConsolidatedBookUpdatedListener listener)
Register handler for top of the consolidated book updates processing.
|
void |
registerTopOfTheImpliedBookUpdatedListener(TopOfTheImpliedBookUpdatedListener listener)
Register handler for top of the implied book updates processing.
|
void |
registerTopOfTheMarketByOrderBookUpdatedListener(TopOfTheMarketByOrderBookUpdatedListener listener)
Register handler for top of the market by order book updates processing.
|
void |
registerTopOfTheRegularBookUpdatedListener(TopOfTheRegularBookUpdatedListener listener)
Register handler for top of the regular book updates processing.
|
void |
registerTradeListener(TradeListener listener)
Register handler for trade processing.
|
void |
registerWarningListener(WarningListener warningListener)
Register handler for warning event processing.
|
boolean |
removeGroupIdFilter(String groupId)
Removes the Group ID filter value.
|
boolean |
removeSecurityIdFilter(int securityId)
Removes the Security ID filter value.
|
boolean |
removeSymbolFilter(String symbol)
Removes the Symbol filter value.
|
void |
setBookUpdatedCallbackPolicy(BookUpdatedCallbackPolicy _bookUpdatedCallbackPolicy)
Sets book updated callbacks policy.
|
void |
setChannelConfigurationFile(String value)
Set path to the CME Market Data Feed Channel configuration XML file.
|
void |
setDirectBookDefaultDepth(int directBookDefaultDepth)
Sets direct book default depth.
|
void |
setGcpCmeProjectId(String gcpProjectId)
Set the CME Google Cloud Platform project id.
|
void |
setGcpContentOwner(GcpContentOwner gcpContentOwner)
Set the CME content owner.
|
void |
setGcpDeleteSubscriptions(boolean gcpDeleteSubscriptions)
Set if Handler should delete subscription after stopping the corresponding feed.
|
void |
setGcpEnvironmentType(GcpEnvironmentType gcpEnvironmentType)
Set the CME environment type.
|
void |
setGcpKeyPath(String gcpKeyPath)
Set the path to the key file used by Google Cloud Platform connection.
|
void |
setGcpParallelPullCount(int gcpParallelPullCount)
Set the Google Cloud Platform parallel pull count.
|
void |
setGcpProjectId(String gcpProjectId)
Set the Customer Google Cloud Platform project id.
|
void |
setImpliedBookDefaultDepth(int impliedBookDefaultDepth)
Sets implied book default depth.
|
void |
setIncrementalCacheSize(int value)
Set incremental packets cache size.
|
static void |
setLicenseDirectory(String value)
Sets path to directory where license file is located.
|
static void |
setLicenseFile(String value)
Sets license file name or absolute path to license.
|
void |
setLocalNetworkInterface(NetworkInterface value)
Get local network interface that is used to receive UDP multicast packets.
|
void |
setLocalNetworkInterfaceA(NetworkInterface value)
Set local network interface that is used to receive UDP multicast packets for "A" feeds.
|
void |
setLocalNetworkInterfaceB(NetworkInterface value)
Set local network interface that is used to receive UDP multicast packets for "B" feeds.
|
static void |
setMaximumNumberOfQueuedIncrementalRefreshMessages(int value)
Get Maximum number of queued Market Data Incremental Refresh (X) messages.
|
void |
setProcessMarketByOrderBooks(boolean value)
Set if handler should process Market By Order Books and use MBO Snapshots to recover (if configured).
|
void |
setProcessMarketByPriceBooks(boolean value)
Set if handler should process Market By Price Books and use Snapshots to recover (if configured).
|
void |
setProtocolFamily(ProtocolFamilyDetection value)
Get IP protocol family.
|
void |
setReceiveMode(ReceiveMode value)
Set IO receive mode.
|
void |
setReceiveTimeoutInMilliseconds(int value)
Set amount of time a Handler will wait to receive data once a read operation is initiated.
|
void |
setRecoverSecurityDefinitionsOnGap(boolean value)
Set the flag to recover the Security Definition messages each time when the message sequence gap is detected.
|
void |
setReportNoDataWarning(boolean value)
Set report-no-data option value.
|
void |
setSecurityDefinitionsCacheRoot(String value)
Set path where security definition cache will be stored.
|
void |
setSocketBufferSize(int value)
Set UDP socket buffer size in bytes.
|
void |
setTcpReplay(boolean value)
Set option to use the TcpReplay Channel for recovery of missed messages.
|
void |
setTcpReplayMaximumGapSize(int tcpReplayMaximumGapSize)
Set maximum gap size, which be recovered via TCP Replay service.
|
void |
setTcpReplayPassword(String value)
Set password or passphrase to be used in the Logon (35=A) message from customer to CME Tcp Replay service.
|
void |
setTcpReplayReconnectAttempts(int value)
Set number of attempts to receive missed messages via CME Tcp Replay service.
|
void |
setTcpReplayReconnectIntervalInMilliseconds(int value)
Set interval between attempts to receive missed messages via CME Tcp Replay service (in milliseconds).
|
void |
setTcpReplayRequestRate(int tcpReplayRequestRate)
Set the rate of TCP Replay requests.
|
void |
setTcpReplayRequestRateExceededAction(TcpReplayRequestRateExceededAction tcpReplayRequestRateExceededAction)
Set an action on exceed Tcp Replay Request Rate.
|
void |
setTcpReplayTimeoutIntervalInMilliseconds(int value)
Set timeout interval for CME Tcp Replay service (in milliseconds).
|
void |
setTcpReplayUsername(String value)
Set user ID or username to be used in the Logon (35=A) message from customer to CME Tcp Replay service.
|
void |
setTemplateFile(String value)
Set path to the CME SBE templates file.
|
void |
setUdpClientFactory(UdpClientFactory factory)
Set factory for creating custom UDP socket client.
|
void |
setUseGcp(boolean useGcp)
Get the flag to use or not Google Cloud Platform instead of the standard multicast data stream.
|
void |
setUseIncrementalFeedA(boolean value)
Set the flag to use or not incremental feed "A" option.
|
void |
setUseIncrementalFeedB(boolean value)
Set the flag to use or not incremental feed "B" option.
|
void |
setUseInstrumentReplayFeedA(boolean value)
Set the flag to use or not Instrument Definition (UDP) Feed "A".
|
void |
setUseInstrumentReplayFeedB(boolean value)
Set the flag to use or not Instrument Definition (UDP) Feed "B".
|
void |
setUseIpSourceFiltering(boolean value)
Set if datagram source addresses should be filtered.
|
void |
setUseSnapshotFeedA(boolean value)
Set the flag to use or not Market Recovery (UDP) Feed "A".
|
void |
setUseSnapshotFeedB(boolean value)
Set the flag to use or not Market Recovery (UDP) Feed "B".
|
void |
start()
Starts the receiving and processing of market data.
|
void |
start(boolean cacheSecurityDefinitions)
Starts the receiving and processing of market data using cache security definitions option.
|
void |
start(HandlerStartupStrategy startupStrategy)
Starts the receiving and processing of market data.
|
void |
start(HandlerStartupStrategy startupStrategy,
boolean cacheSecurityDefinitions)
Starts the receiving and processing of market data using the specified cache security definitions option.
|
void |
start(ReplayOptions options)
Starts the receiving and processing of market data using the specified books maintenance options.
|
void |
stop()
Stops the receiving and processing of market data.
|
String |
toString() |
void |
unregisterConsolidatedBookUpdatedListener()
Unregister handler for consolidated book updates processing.
|
void |
unregisterErrorListener()
Unregister handler for error event processing.
|
void |
unregisterImpliedBookChangedListener()
Unregister handler for implied book changes processing.
|
void |
unregisterImpliedBookUpdatedListener()
Unregister handler for implied book updates processing.
|
void |
unregisterInfoListener()
Unregister handler for information event processing.
|
void |
unregisterLogReplayListener()
Unregister handler for log replay event processing.
|
void |
unregisterMarketByOrderBookChangedListener()
Unregister handler for market by order book changes processing.
|
void |
unregisterMarketByOrderBookUpdatedListener()
Unregister handler for market by order book updates processing.
|
void |
unregisterMessageProcessingListener()
Unregister handler for received message processing.
|
void |
unregisterOrderIdUpdatedListener()
Unregister handler for order ids processing.
|
void |
unregisterPacketGapDetectedListener()
Unregister handler for detected message gap processing.
|
void |
unregisterPacketProcessingListener()
Unregister handler for received packet processing.
|
void |
unregisterRegularBookChangedListener()
Unregister handler for regular book changes processing.
|
void |
unregisterRegularBookUpdatedListener()
Unregister handler for regular book updates processing.
|
void |
unregisterRequestForQuoteListener()
Unregister handler for quote request processing.
|
void |
unregisterSecurityDefinitionListener()
Unregister handler for security definitions processing.
|
void |
unregisterSecurityStatusListener()
Unregister handler for security status processing.
|
void |
unregisterStateChangedListener()
Unregister handler for handler state changed event processing.
|
void |
unregisterStatisticsListener()
Unregister handler for statistics processing.
|
void |
unregisterTopOfTheConsolidatedBookUpdatedListener()
Unregister handler for top of the consolidated book updates processing.
|
void |
unregisterTopOfTheImpliedBookUpdatedListener()
Unregister handler for top of the implied book updates processing.
|
void |
unregisterTopOfTheMarketByOrderBookUpdatedListener()
Unregister handler for top of the market by order book updates processing.
|
void |
unregisterTopOfTheRegularBookUpdatedListener()
Unregister handler for top of the regular book updates processing.
|
void |
unregisterTradeListener()
Unregister handler for trade processing.
|
void |
unregisterWarningListener()
Unregister handler for warning event processing.
|
public CmeMdHandler(String channelId) throws LicenseException
channelId
- Channel ID.LicenseException
- license expired, corrupted or not found.public int getDirectBookDefaultDepth()
public void setDirectBookDefaultDepth(int directBookDefaultDepth)
directBookDefaultDepth
- direct book default depth.public int getImpliedBookDefaultDepth()
public void setImpliedBookDefaultDepth(int impliedBookDefaultDepth)
impliedBookDefaultDepth
- implied book default depth.public BookUpdatedCallbackPolicy getBookUpdatedCallbackPolicy()
public void setBookUpdatedCallbackPolicy(BookUpdatedCallbackPolicy _bookUpdatedCallbackPolicy)
_bookUpdatedCallbackPolicy
- Book updated callbacks policy.public Set<Integer> getSecurityIdFilters()
public Set<String> getSecurityGroupFilters()
public void addSecurityIdFilter(int securityId)
securityId
- SecurityID to be used for inclusive filtering.public final boolean removeSecurityIdFilter(int securityId)
securityId
- Security ID value to remove from Security ID filters.public final void clearSecurityIdFilters()
public final void addSymbolFilter(String symbol)
symbol
- Symbol to be used for inclusive filtering.public final boolean removeSymbolFilter(String symbol)
symbol
- Symbol value to remove from Symbol filters.public final void clearSymbolFilters()
public final void addGroupIdFilter(String groupId)
groupId
- Group ID to be used for inclusive filtering.public final boolean removeGroupIdFilter(String groupId)
groupId
- Group ID value to remove from Group ID filters.public final void clearGroupIdFilters()
public final HandlerState getState()
public boolean getReportNoDataWarning()
public void setReportNoDataWarning(boolean value)
value
- true if handler should report no-data event; otherwise, false..public boolean getUseIncrementalFeedA()
public void setUseIncrementalFeedA(boolean value)
value
- true if handler should use incremental feed "A"; otherwise, false.public boolean getUseIncrementalFeedB()
public void setUseIncrementalFeedB(boolean value)
value
- true if handler should use incremental feed "B"; otherwise, false.public final boolean getUseSnapshotFeedA()
public final void setUseSnapshotFeedA(boolean value)
value
- true if handler should use Market Recovery (UDP) Feed "A"; otherwise, false.public final boolean getUseSnapshotFeedB()
public final void setUseSnapshotFeedB(boolean value)
value
- true if handler should use Market Recovery (UDP) Feed "B"; otherwise, false.public final boolean getUseInstrumentReplayFeedA()
public final void setUseInstrumentReplayFeedA(boolean value)
value
- true if handler should use Instrument Definition (UDP) Feed "A"; otherwise, false.public final boolean getUseInstrumentReplayFeedB()
public final void setUseInstrumentReplayFeedB(boolean value)
value
- true if handler should use Instrument Definition (UDP) Feed "B"; otherwise, false.public UdpClientFactory getUdpClientFactory()
public void setUdpClientFactory(UdpClientFactory factory)
factory
- factory for creating custom UDP socket client.public int getSocketBufferSize()
public void setSocketBufferSize(int value)
value
- socket buffer size.public final boolean getUseIpSourceFiltering()
public final void setUseIpSourceFiltering(boolean value)
value
- true, if datagram source addresses will be filtered.public final ProtocolFamilyDetection getProtocolFamily()
public final void setProtocolFamily(ProtocolFamilyDetection value)
value
- IP protocol family.public ReceiveMode getReceiveMode()
public void setReceiveMode(ReceiveMode value)
value
- IO receive mode.public int getIncrementalCacheSize()
public void setIncrementalCacheSize(int value)
value
- incremental packets cache size.public int getOutOfOrderIncrementalQueueSize()
public int getNumberOfQueuedIncrementalRefreshMessages()
public BestBidAskTrackingOptions getBestBidAskTrackingOptions()
public static int getMaximumNumberOfQueuedIncrementalRefreshMessages()
When the message gap is detected all subsequent Refresh(X) messages are queued until the Handler re-synchronizes with the market using Snapshot(W) messages. After that the queued Refresh(X) messages are re-played. This setting could be used to limit the memory usage when there is no Market Data - Snapshot/Full Refresh (W) messages. Default value is 10000;
public static void setMaximumNumberOfQueuedIncrementalRefreshMessages(int value)
When the message gap is detected all subsequent Refresh(X) messages are queued until the Handler re-synchronizes with the market using Snapshot(W) messages. After that the queued Refresh(X) messages are re-played. This setting could be used to limit the memory usage when there is no Market Data - Snapshot/Full Refresh (W) messages.
Default value is 10000;value
- maximum number of queued Market Data Incremental Refresh (X) messages.public void registerInfoListener(InfoListener infoListener)
infoListener
- handler.public void unregisterInfoListener()
public void registerErrorListener(ErrorListener errorListener)
errorListener
- handler.public void unregisterErrorListener()
public void registerWarningListener(WarningListener warningListener)
warningListener
- handler.public void unregisterWarningListener()
public void registerSecurityDefinitionListener(SecurityDefinitionListener listener)
listener
- handler.public void unregisterSecurityDefinitionListener()
public void registerStateChangedListener(HandlerStateChangedListener listener)
listener
- handler.public void unregisterStateChangedListener()
public void registerLogReplayListener(ReplayListener listener)
listener
- handler.public void unregisterLogReplayListener()
public void registerStatisticsListener(StatisticsListener statisticsListener)
statisticsListener
- handler.public void unregisterStatisticsListener()
public void registerRegularBookChangedListener(RegularBookChangedListener listener)
listener
- handler.public void unregisterRegularBookChangedListener()
public void registerRegularBookUpdatedListener(RegularBookUpdatedListener listener)
listener
- handler.public void unregisterRegularBookUpdatedListener()
public void registerImpliedBookChangedListener(ImpliedBookChangedListener listener)
listener
- handler.public void unregisterImpliedBookChangedListener()
public void registerImpliedBookUpdatedListener(ImpliedBookUpdatedListener listener)
listener
- handler.public void unregisterImpliedBookUpdatedListener()
public void registerMarketByOrderBookChangedListener(MarketByOrderBookChangedListener listener)
listener
- handler.public void unregisterMarketByOrderBookChangedListener()
public void registerMarketByOrderBookUpdatedListener(MarketByOrderBookUpdatedListener listener)
listener
- handler.public void unregisterMarketByOrderBookUpdatedListener()
public void registerTopOfTheRegularBookUpdatedListener(TopOfTheRegularBookUpdatedListener listener)
listener
- handler.public void unregisterTopOfTheRegularBookUpdatedListener()
public void registerTopOfTheImpliedBookUpdatedListener(TopOfTheImpliedBookUpdatedListener listener)
listener
- handler.public void unregisterTopOfTheImpliedBookUpdatedListener()
public void registerTopOfTheConsolidatedBookUpdatedListener(TopOfTheConsolidatedBookUpdatedListener listener)
listener
- handler.public void unregisterTopOfTheConsolidatedBookUpdatedListener()
public void registerTopOfTheMarketByOrderBookUpdatedListener(TopOfTheMarketByOrderBookUpdatedListener listener)
listener
- handler.public void unregisterTopOfTheMarketByOrderBookUpdatedListener()
public void registerConsolidatedBookUpdatedListener(ConsolidatedBookUpdatedListener listener)
listener
- handler.public void unregisterConsolidatedBookUpdatedListener()
public void registerOrderIdListener(OrderIdListener listener)
listener
- handler.public void unregisterOrderIdUpdatedListener()
public void registerRequestForQuoteListener(RequestForQuoteListener listener)
listener
- handler.public void unregisterRequestForQuoteListener()
public void registerSecurityStatusListener(SecurityStatusChangedListener listener)
listener
- handler.public void unregisterSecurityStatusListener()
public void registerTradeListener(TradeListener listener)
listener
- handler.public void unregisterTradeListener()
public void registerPacketGapDetectedListener(PacketGapDetectedListener listener)
listener
- handler.public void unregisterPacketGapDetectedListener()
public void registerMessageProcessingListener(MessageProcessingListener listener)
listener
- handler.public void unregisterMessageProcessingListener()
public void registerPacketProcessingListener(PacketProcessingListener listener)
listener
- handler.public void unregisterPacketProcessingListener()
public String getSecurityDefinitionsCacheRoot()
public void setSecurityDefinitionsCacheRoot(String value)
value
- path where security definition cache will be stored.public final NetworkInterface getLocalNetworkInterface()
public final void setLocalNetworkInterface(NetworkInterface value)
value
- local network interface that is used to receive UDP multicast packets.public final NetworkInterface getLocalNetworkInterfaceA()
public final void setLocalNetworkInterfaceA(NetworkInterface value)
value
- local network interface that is used to receive UDP multicast packets for "A" feeds.public final NetworkInterface getLocalNetworkInterfaceB()
public final void setLocalNetworkInterfaceB(NetworkInterface value)
value
- local network interface that is used to receive UDP multicast packets for "B" feeds.public final int getReceiveTimeoutInMilliseconds()
public final void setReceiveTimeoutInMilliseconds(int value)
value
- amount of time a Handler will wait to receive data once a read operation is initiated.public boolean getUseGcp()
public void setUseGcp(boolean useGcp)
useGcp
- true if handler should use Google Cloud Platform instead of the standard multicast data stream; otherwise, false.public String getGcpKeyPath()
public void setGcpKeyPath(String gcpKeyPath)
gcpKeyPath
- path to the key file used by Google Cloud Platform connection.public String getGcpProjectId()
public void setGcpProjectId(String gcpProjectId)
gcpProjectId
- Customer Google Cloud Platform project id.public String getGcpCmeProjectId()
public void setGcpCmeProjectId(String gcpProjectId)
gcpProjectId
- CME Google Cloud Platform project id.public GcpEnvironmentType getGcpEnvironmentType()
public void setGcpEnvironmentType(GcpEnvironmentType gcpEnvironmentType)
gcpEnvironmentType
- CME environment type.public GcpContentOwner getGcpContentOwner()
public void setGcpContentOwner(GcpContentOwner gcpContentOwner)
gcpContentOwner
- CME content owner.public int getGcpParallelPullCount()
public void setGcpParallelPullCount(int gcpParallelPullCount)
gcpParallelPullCount
- Google Cloud Platform parallel pull count.public boolean getGcpDeleteSubscriptions()
public void setGcpDeleteSubscriptions(boolean gcpDeleteSubscriptions)
gcpDeleteSubscriptions
- true, if Handler should delete subscription after stopping the corresponding feed.public final boolean getRecoverSecurityDefinitionsOnGap()
public final void setRecoverSecurityDefinitionsOnGap(boolean value)
value
- true if handler should recover security definitions if message gap detected; otherwise, false.public final String getChannelId()
public final org.joda.time.DateTime getLicenseExpirationDate()
public final String getChannelConfigurationFile()
public final void setChannelConfigurationFile(String value)
value
- path to the CME Market Data Feed Channel configuration XML file.public final boolean getTcpReplay()
public final void setTcpReplay(boolean value)
value
- option to use the TcpReplay Channel for recovery of missed messages.public final String getTcpReplayUsername()
public final void setTcpReplayUsername(String value)
value
- username.public final String getTcpReplayPassword()
public final void setTcpReplayPassword(String value)
value
- password.public final int getTcpReplayReconnectAttempts()
public final void setTcpReplayReconnectAttempts(int value)
value
- number of attempts to receive missed messages via CME Tcp Replay service.public final int getTcpReplayReconnectIntervalInMilliseconds()
public final void setTcpReplayReconnectIntervalInMilliseconds(int value)
value
- interval between attempts to receive missed messages via CME Tcp Replay service (in milliseconds).public final int getTcpReplayTimeoutIntervalInMilliseconds()
public final void setTcpReplayTimeoutIntervalInMilliseconds(int value)
value
- timeout interval for CME Tcp Replay service (in milliseconds).public int getTcpReplayMaximumGapSize()
public void setTcpReplayMaximumGapSize(int tcpReplayMaximumGapSize)
tcpReplayMaximumGapSize
- maximum gap size for TCP Replay service.public int getTcpReplayRequestRate()
public void setTcpReplayRequestRate(int tcpReplayRequestRate)
tcpReplayRequestRate
- the rate of TCP Replay requests.public TcpReplayRequestRateExceededAction getTcpReplayRequestRateExceededAction()
public void setTcpReplayRequestRateExceededAction(TcpReplayRequestRateExceededAction tcpReplayRequestRateExceededAction)
tcpReplayRequestRateExceededAction
- an action on exceeded Tcp Replay Request Rate.public boolean getProcessMarketByPriceBooks()
public void setProcessMarketByPriceBooks(boolean value)
value
- true, if handler should process Market By Price Books and use Snapshots to recover.public boolean getProcessMarketByOrderBooks()
public void setProcessMarketByOrderBooks(boolean value)
value
- true, if handler should process Market By Order Books and use MBO Snapshots to recover.public final String getTemplateFile()
public final void setTemplateFile(String value)
value
- path to the CME SBE templates file.public static String getLicenseFile()
public static void setLicenseFile(String value)
value
- License file name or absolute path to license.public static String getLicenseDirectory()
public static void setLicenseDirectory(String value)
value
- Path to directory where license file is located.public final biz.onixs.cme.sbe.ByteDecoder getDecoder()
public final biz.onixs.cme.sbe.def.IMessageSchema getMessageSchema()
public final void start(ReplayOptions options)
options
- replay optionspublic final void start() throws IOException
IOException
public final void start(HandlerStartupStrategy startupStrategy) throws IOException
startupStrategy
- Market joining strategy.IOException
public final void start(boolean cacheSecurityDefinitions) throws IOException
cacheSecurityDefinitions
- true if handler should cache received security definitions; otherwise, false.IOException
public final void start(HandlerStartupStrategy startupStrategy, boolean cacheSecurityDefinitions) throws IOException
startupStrategy
- Market joining strategy.cacheSecurityDefinitions
- true if handler should cache received security definitions; otherwise, false.IOException
public final void stop() throws InterruptedException
InterruptedException
- if method will be interrupted.Copyright © 2010–2020 Onix Solutions. All rights reserved.