The StreamingInstrumentDataSubscriber
class provides a streaming transport implementation of the caplin.trading.trademodel.InstrumentDataSubscriber
Attributes | Name and Description |
---|---|
|
caplin.trading.trademodel.StreamingInstrumentDataSubscriber(caplin.trading.trademodel.SubjectMapper oSubjectMapper, oMessageService)
Constructs an instance of |
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 |
►
caplin.trading.trademodel.StreamingInstrumentDataSubscriber(caplin.trading.trademodel.SubjectMapper oSubjectMapper, oMessageService)
Constructs an instance of caplin.trading.trademodel.StreamingInstrumentDataSubscriber
.
caplin.trading.trademodel.SubjectMapper | oSubjectMapper | Maps the instrument to a subject name, as understood by the Liberator. |
oMessageService |
oSubjectMapper
is null
or is of an incorrect type.
►
void
addDataChangedListener(caplin.trading.trademodel.DataChangedListener oListener)
Adds an object that will have its a callback method executed when the server returns data.
caplin.trading.trademodel.DataChangedListener | oListener | The callback object |
►
void
removeDataChangedListener( oListener)
Removes the previously registered DataChangedListener
.
oListener | The object to be called removed |