Class
caplin.sl4badapter.providers

SL4BDataSubscriber

Extends SL4B_AbstractSubscriber.
The SL4BObjectSubscriber class provides an SL4B transport implementation of the {@link caplin.core.subscriber.DataSubscriber DataSubscriber} interface.

The subscription to the data source is started once a listener is set.

Constructor Summary

Attributes Name and Description
caplin.sl4badapter.providers.SL4BDataSubscriber(String sSubject)

Constructs an instance of caplin.sl4badapter.providers.SL4BDataSubscriber.

Method Summary

Attributes Name and Description
void getSubscribedSubject()

Returns the SL4B subject of the active subscription if the subscription is not stopped.

boolean isAvailable()

Returns true if the object is available.

void setListener( oListener)

This method sets a new listener on the SL4B data subscription.

Methods implemented from class caplin.core.subscriber.DataSubscriber:
resume, stop

Constructor Detail

caplin.sl4badapter.providers.SL4BDataSubscriber(String sSubject)

Constructs an instance of caplin.sl4badapter.providers.SL4BDataSubscriber.

Parameters
String sSubject the data subject to which to subscribe. Required; non-empty.
Throws
caplin.core.Error
if sSubject is undefined, null or empty

Method Detail

void getSubscribedSubject()

Returns the SL4B subject of the active subscription if the subscription is not stopped.

See
caplin.core.subscriber.DataSubscriber#getSubscribedSubject

boolean isAvailable()

Returns true if the object is available. Returns false if an SL4B objectStatus STALE/REMOVED/LIMITED or objectDeleted/NotFound/ReadDenied/Unavailable/WriteDenied callback is received.

void setListener( oListener)

This method sets a new listener on the SL4B data subscription. The subscription is started the first time that setListener is called.

Parameters
oListener
See
caplin.core.subscriber.DataSubscriber#setListener