public interface SubjectErrorEvent
Represents an event raised when there is an error in a subscription to a subject.
A SubjectErrorEvent
can be raised by a source application (that is, a
DataSource application sending data to its DataSource peers). The following are typical
situations in which a source application may wish to raise a SubjectErrorEvent
:
DataProvider
.
An object implementing this interface cannot be instantiated directly, but can be constructed
using the
MessageFactory.createSubjectErrorEvent(String, SubjectError, SubjectError.Flags...)
method of the MessageFactory
that is available on the
Publisher
interface.
A SubjectErrorEvent
can be received by a sink application (that is, a
DataSource application receiving data from its DataSource peers). Such events are received
through the
SubscriptionListener.subjectErrorReceived(com.caplin.datasource.subscription.Subscription, Peer, SubjectErrorEvent)
callback on SubscriptionListener.
Situations where a SubjectErrorEvent
can be raised before any data is received
include:
Situations where a SubscriptionErrorEvent
can be raised after data is received
include:
The getError()
method provides more information about why the
SubjectErrorEvent
was raised.
Modifier and Type | Method and Description |
---|---|
SubjectError |
getError()
Gets the
SubjectError relating to the
SubjectErrorEvent . |
java.lang.String |
getSubject()
Gets the subject of the subscription relating to the
SubjectErrorEvent . |
java.lang.String getSubject()
SubjectErrorEvent
.SubjectError getError()
SubjectError
relating to the
SubjectErrorEvent
.Please send bug reports and comments to Caplin support