Class
caplin.trading.trademodel

SL4BInstrumentDataSubscriber

The class has been deprecated and may be removed in future releases.
Extends SL4B_AbstractSubscriber.

The SL4BInstrumentDataSubscriber class provides an SL4B transport implementation of the caplin.trading.trademodel.InstrumentDataSubscriber

Constructor Summary

Attributes Name and Description
caplin.trading.trademodel.SL4BInstrumentDataSubscriber(caplin.trading.trademodel.SubjectMapper oSubjectMapper)

Method Summary

Attributes Name and Description
void addDataChangedListener(caplin.trading.trademodel.DataChangedListener oListener)

Adds an object that will have its a callback method executed when the server returns data.

void removeDataChangedListener( oListener)

Removes the previously registered DataChangedListener.

Methods implemented from class caplin.trading.trademodel.InstrumentDataSubscriber:
subscribeTradeLeg, unsubscribeTradeLeg

Constructor Detail

caplin.trading.trademodel.SL4BInstrumentDataSubscriber(caplin.trading.trademodel.SubjectMapper oSubjectMapper)

Parameters
caplin.trading.trademodel.SubjectMapper oSubjectMapper Maps the instrument to a subject name, as understood by the Liberator.
Deprecated
Constructs an instance of caplin.trading.trademodel.SL4BInstrumentDataSubscriber.
Throws
caplin.core.Error
if oSubjectMapper is null or is of an incorrect type.

Method Detail

void addDataChangedListener(caplin.trading.trademodel.DataChangedListener oListener)

Adds an object that will have its a callback method executed when the server returns data.

Parameters
caplin.trading.trademodel.DataChangedListener oListener The callback object
See
#removeDataChangedListener

void removeDataChangedListener( oListener)

Removes the previously registered DataChangedListener.

Parameters
oListener The object to be called removed
See
#addDataChangedListener