Interface
caplin.chart.service

ChartService

This interface must be implemented by classes that are to provide communication to a backend system for charting data.

The service provided by a class that implements this interface is aliased by caplin.chart-service. The default implementation is caplin.chart.service.StreamLinkChartService which knows how to obtain chart data from Caplin Platform.

ChartService is used by caplin.chart.Series.

Constructor Summary

Attributes Name and Description
caplin.chart.service.ChartService()

Method Summary

Attributes Name and Description
void discard(Object seriesRequest, Object listener)

Unsubscribe from receiving chart series data for the given request.

void retrieve(Object seriesRequest, Object listener)

Subscribe to receive chart series data.

Constructor Detail

caplin.chart.service.ChartService()

Method Detail

void discard(Object seriesRequest, Object listener)

Unsubscribe from receiving chart series data for the given request.

Parameters
Object seriesRequest The caplin.chart.series.SeriesRequest object that was used to subscribe.
Object listener The listener object that will be unsubscribed as a listener.

void retrieve(Object seriesRequest, Object listener)

Subscribe to receive chart series data.

Parameters
Object seriesRequest A caplin.chart.series.SeriesRequest object that holds all the information that the message service needs to retrieve the correct chart series data.
Object listener Object that implements callbacks that the message service will call when it has chart series data.