public interface IEReplyFeed extends IEFeed
| Modifier and Type | Method and Description |
|---|---|
void |
advertise()
Advertises this replier fed to the associated request
subject.
|
void |
cancelRequestCallback(CancelRequestCallback cb)
Puts the cancel request callback in place.
|
boolean |
isAdvertised()
Returns
true if this reply feed is both open and
advertised; otherwise, returns false. |
void |
requestCallback(RequestCallback cb)
Puts the new request callback in place.
|
void |
unadvertise()
Retracts this replier feed advertisement.
|
void |
updateFeedState(EFeedState update)
Updates the replier feed state to the given value.
|
boolean isAdvertised()
true if this reply feed is both open and
advertised; otherwise, returns false.true if this reply feed is open and
advertisedvoid requestCallback(RequestCallback cb)
cb is
not null, requests will be passed to cb
rather than
EReplier.request(EReplyFeed.ERequest). A
null cb means that requests are passed to the
EReplier.request(EReplyFeed.ERequest) override.cb - the request callback. May be null.IllegalStateException - if this feed is either closed or advertised.void cancelRequestCallback(CancelRequestCallback cb)
cb
is not null, requests will be passed to cb
rather than
EReplier.cancelRequest(EReplyFeed.ERequest). A
null cb means that cancellations are passed to the
EReplier.cancelRequest(EReplyFeed.ERequest)
override.cb - the cancel request callback. May be
null.IllegalStateException - if this feed is either closed or advertised.void advertise()
IllegalStateException - if this feed is closed or if the client did not override
EReplier methods nor put the required callbacks in
place.unadvertise(),
updateFeedState(EFeedState),
EFeed.close()void unadvertise()
IllegalStateException - if this reply feed is closed.advertise(),
IEFeed.close()void updateFeedState(EFeedState update)
update equals the currently stored reply 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 subscribed requestors.update - the new reply feed state.NullPointerException - if update is null.IllegalStateException - if this feed was closed and is inactive or is not
advertised.Copyright © 2019. All rights reserved.