@FunctionalInterface public interface RequestCallback
EReplier.request(EReplyFeed.ERequest)
by passing a RequestCallback instance to
EReplyFeed.requestCallback(RequestCallback). This
allows a tighter coupling between a feed and the code for
processing the feed's requests.
Note: This must be done after opening a EReplyFeed
and before advertising.
EReplyFeed.requestCallback(RequestCallback)| Modifier and Type | Method and Description |
|---|---|
void |
call(EReplyFeed.ERequest request)
An incoming request.
|
void call(EReplyFeed.ERequest request)
reply
either from within this method call or asynchronously
after returning from this method. If the reply is sent
asynchronously, then the replier must store
request for later use. Replies are sent using
ERequest and not EReplyFeed.
The
request message
is stored in request and can be retrieved by
calling EReplyFeed.ERequest.request().
The request matches the
replier's open and advertised feed. The
associated EReplyFeed may be retrieved by calling
EReplyFeed.ERequest.replier().
request - post replies to msg to this
request.Copyright © 2019. All rights reserved.