public interface IERequestFeed extends IEFeed
| Modifier and Type | Method and Description |
|---|---|
void |
replyCallback(Class<? extends EReplyMessage> mc,
ReplyCallback cb)
Sets the callback for a specific reply message class.
|
void |
replyCallback(ReplyCallback cb)
Puts the reply message callback in place
for all reply types.
|
void |
statusCallback(FeedStatusCallback<ERequestFeed> cb)
Puts the feed status callback in place.
|
void |
subscribe()
Activates this replier status subscription.
|
void |
unsubscribe()
De-activates this replier status subscription.
|
void statusCallback(FeedStatusCallback<ERequestFeed> cb)
cb - the feed status update callback. May be
null.void replyCallback(ReplyCallback cb)
cb is
not null, replies will be passed to cb
rather than
ERequestor.reply(int, EReplyMessage, ERequestFeed.ERequest).
A null cb results in replies posted to the
ERequestor.reply(int, EReplyMessage, ERequestFeed.ERequest)
override.
Note that this method call overrides all previous calls
to replyCallback(Class, ReplyCallback). If
the goal is to use a generic callback for all replies
except one specific message, then use this method to put
the generic callback in place first and then use
replyCallback(EMessageKey, ReplyCallback).
cb - reply message callback. May be null.IllegalStateException - if this feed is either closed or subscribed.replyCallback(Class, ReplyCallback)void replyCallback(Class<? extends EReplyMessage> mc, ReplyCallback cb)
cb is not null, replies will be passed to
cb rather than
ERequestor.reply(int, EReplyMessage, ERequestFeed.ERequest).
A cb results in replies posted to the
ERequestor.reply(int, EReplyMessage, ERequestFeed.ERequest)
override.
If the goal is to set a single callback method for all
reply message types, then use
replyCallback(ReplyCallback). Note that method
overrides all previous set reply callbacks.
mc - the reply message class.cb - callback for the reply message.NullPointerException - if mc is null.IllegalArgumentException - if mc is not a reply for this request.IllegalStateException - if this feed is either closed or subscribed.void subscribe()
void unsubscribe()
Copyright © 2019. All rights reserved.