Class AbstractRFSLifetimeEventHandler
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.submission.FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
-
- com.caplin.motif.fx.ret.fxtrading.submission.rfs.AbstractRFSLifetimeEventHandler
-
- All Implemented Interfaces:
com.caplin.motif.datasource.CloseableTradeListener
,ConversionRateListener
,com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
,com.caplin.ret.trapi.fx.execution.MarketOrderListener
,com.caplin.trading.TradeListener
- Direct Known Subclasses:
BlockLifetimeEventHandler
,RFSLifetimeEventHandler
public abstract class AbstractRFSLifetimeEventHandler extends FXTradeLifetimeEventHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> implements ConversionRateListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractRFSLifetimeEventHandler.TradeState
-
Constructor Summary
Constructors Constructor Description AbstractRFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, UserTradeInfo userTradeInfo, FxTradingAdapterInitialiser initialiser, AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> blotterDataProvider, java.lang.String tradingProtocol, ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider, CrossCurrencyPairProvider crossCurrencyPairProvider, com.caplin.ret.trapi.concurrent.executor.SharedExecutorService<java.util.concurrent.ExecutorService> serialExecutor, RFSTradePropertiesFactory rfsTradePropertiesFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection)
abstract boolean
isSwap()
void
onConversionRateFailure()
void
onConversionRateUpdate(java.lang.String bidRate, java.lang.String askRate)
void
onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event)
Triggered when a block trade is submitted to RETvoid
onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
void
onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event)
-
Methods inherited from class com.caplin.motif.fx.ret.fxtrading.submission.FXTradeLifetimeEventHandler
close, getTrapiTrade, onDealLogged, tradeClosed
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener
connectionRegistrationFailed
-
-
-
-
Constructor Detail
-
AbstractRFSLifetimeEventHandler
public AbstractRFSLifetimeEventHandler(FxTradingAdapterInitialiser adapterInitialiser, com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, UserTradeInfo userTradeInfo, FxTradingAdapterInitialiser initialiser, AbstractBlotterDataProvider<com.caplin.generated.motif.fx.trading.rfs.RFSTrade> blotterDataProvider, java.lang.String tradingProtocol, ConversionRateCurrencyPairProvider conversionRateCurrencyPairProvider, CrossCurrencyPairProvider crossCurrencyPairProvider, com.caplin.ret.trapi.concurrent.executor.SharedExecutorService<java.util.concurrent.ExecutorService> serialExecutor, RFSTradePropertiesFactory rfsTradePropertiesFactory)
-
-
Method Detail
-
onQuoteDenied
public void onQuoteDenied(com.caplin.ret.trapi.fx.execution.TradeErrorEvent event)
- Specified by:
onQuoteDenied
in interfacecom.caplin.ret.trapi.fx.execution.MarketOrderListener
-
onDealSubmitted
public void onDealSubmitted(com.caplin.ret.trapi.fx.execution.TradeEvent event)
Triggered when a block trade is submitted to RET- Specified by:
onDealSubmitted
in interfacecom.caplin.ret.trapi.fx.execution.MarketOrderListener
- Parameters:
event
- the Trade event submitted to RET
-
onQuoteTimerUpdate
public void onQuoteTimerUpdate(com.caplin.ret.trapi.fx.execution.QuoteTimerEvent event)
- Specified by:
onQuoteTimerUpdate
in interfacecom.caplin.ret.trapi.fx.execution.MarketOrderListener
-
connectionAvailable
public void connectionAvailable(com.caplin.ret.trapi.connection.MarketOrderConnection connection)
- Specified by:
connectionAvailable
in interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.MarketOrderConnection>
-
onConversionRateUpdate
public void onConversionRateUpdate(java.lang.String bidRate, java.lang.String askRate)
- Specified by:
onConversionRateUpdate
in interfaceConversionRateListener
-
onConversionRateFailure
public void onConversionRateFailure()
- Specified by:
onConversionRateFailure
in interfaceConversionRateListener
-
isSwap
public abstract boolean isSwap()
-
-