public interface IEPublishFeed extends IEFeed
EPublishFeed and
EMultiPublishFeed feeds. Allows an application to
reference single- and multi-key publish feeds referenced as
an IEPublishFeed.| Modifier and Type | Method and Description |
|---|---|
void |
advertise()
Advertises this publisher feed to the associated
notification subject.
|
boolean |
isAdvertised()
Returns
true if this publish feed is both
open and advertised; otherwise, returns false. |
boolean |
isFeedUp(String subject)
Returns
true if the publisher is clear to publish
a notification for the given feed and false if not
clear. |
void |
publish(ENotificationMessage msg)
Posts this notification message to all interested
subscribers.
|
EFeedState |
publishState()
Returns the current publish state.
|
void |
statusCallback(FeedStatusCallback<IEPublishFeed> cb)
Puts the publish status callback in place.
|
void |
unadvertise()
Retracts this publisher feed from the associated
notification subject.
|
void |
updateFeedState(EFeedState update)
Updates the publish feed state to the given value.
|
boolean isAdvertised()
true if this publish feed is both
open and advertised; otherwise, returns false.true if this publish feed is open and
advertised.EFeedState publishState()
boolean isFeedUp(String subject)
true if the publisher is clear to publish
a notification for the given feed and false if not
clear.subject - check the feed status for this subject.true if the specified publisher feed is up
and the publisher is free to publish notification
messages for the specified subject.void statusCallback(FeedStatusCallback<IEPublishFeed> cb)
cb
is not null, publish status updates will be passed
to cb rather than
EPublisher.publishStatus(EFeedState, IEPublishFeed).
The reverse is true if cb is null. That
is, a null cb means publish status updates are
posted to the
EPublisher.publishStatus(EFeedState, IEPublishFeed)
override.cb - publish status update callback. May be
null.void advertise()
void unadvertise()
void updateFeedState(EFeedState update)
update equals the currently stored publish feed
state, nothing is done. Otherwise, the updated value is
stored. If this feed is advertised to the server and
the subscription feed is up, then this update is forwarded
to the subject.update - new publish feed state.void publish(ENotificationMessage msg)
msg - post this message to subscribers.Copyright © 2019. All rights reserved.