Constructor
new module:caplin/trading/trademodel/StreamingInstrumentDataSubscriber(oSubjectMapper)
Constructs a
caplin.trading.trademodel.StreamingInstrumentDataSubscriber
instance.
Parameters:
Name | Type | Description |
---|---|---|
oSubjectMapper |
module:caplin/trading/trademodel/SubjectMapper | Maps the instrument to a subject name, as understood by the Liberator. |
- Implements:
Throws:
-
if
oSubjectMapper
isnull
or is of an incorrect type.
Methods
-
addDataChangedListener(oListener)
-
Adds an object that will have its a callback method executed when the server returns data.
Parameters:
Name Type Description oListener
module:caplin/trading/trademodel/DataChangedListener The callback object -
removeDataChangedListener(oListener)
-
Removes the previously registered
DataChangedListener
.Parameters:
Name Type Description oListener
The object to be called removed