Package net.sf.eBus.client
Interface RequestCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RequestCallback
This functional interface may be used to handle request delivery instead ofEReplier.request(EReplyFeed.ERequest)
by passing aRequestCallback
instance toEReplyFeed.Builder.requestCallback(RequestCallback)
This allows a tighter coupling between a feed and the code for processing the feed's requests.- Author:
- Charles W. Rapp
- See Also:
EReplyFeed.Builder.requestCallback(RequestCallback)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
call(EReplyFeed.ERequest request)
An incoming request.
-
-
-
Method Detail
-
call
void call(EReplyFeed.ERequest request)
An incoming request. The replier may send areply
either from within this method call or asynchronously after returning from this method. If the reply is sent asynchronously, then the replier must storerequest
for later use. Replies are sent usingERequest
and notEReplyFeed
.The
request message
is stored inrequest
and can be retrieved by callingEReplyFeed.ERequest.request()
.The
request
matches the replier's open and advertisedfeed
. The associatedEReplyFeed
may be retrieved by callingEReplyFeed.ERequest.replier()
.- Parameters:
request
- post replies tomsg
to this request.
-
-