Class
caplin.trading.trademodel

StreamingInstrumentDataSubscriber

The StreamingInstrumentDataSubscriber class provides a streaming transport implementation of the caplin.trading.trademodel.InstrumentDataSubscriber

Constructor Summary

Attributes Name and Description
caplin.trading.trademodel.StreamingInstrumentDataSubscriber(caplin.trading.trademodel.SubjectMapper oSubjectMapper, oMessageService)

Constructs an instance of caplin.trading.trademodel.StreamingInstrumentDataSubscriber.

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
Methods implemented from class caplin.services.messaging.SubscriptionListener:
onDataUpdate, onError, onStatusUpdate

Constructor Detail

caplin.trading.trademodel.StreamingInstrumentDataSubscriber(caplin.trading.trademodel.SubjectMapper oSubjectMapper, oMessageService)

Constructs an instance of caplin.trading.trademodel.StreamingInstrumentDataSubscriber.

Parameters
caplin.trading.trademodel.SubjectMapper oSubjectMapper Maps the instrument to a subject name, as understood by the Liberator.
oMessageService
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