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 RequestCallbackThis functional interface may be used to handle request delivery instead ofEReplier.request(EReplyFeed.ERequest)by passing aRequestCallbackinstance 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 voidcall(EReplyFeed.ERequest request)An incoming request. 
 - 
 
- 
- 
Method Detail
- 
call
void call(EReplyFeed.ERequest request)
An incoming request. The replier may send areplyeither from within this method call or asynchronously after returning from this method. If the reply is sent asynchronously, then the replier must storerequestfor later use. Replies are sent usingERequestand notEReplyFeed.The
request messageis stored inrequestand can be retrieved by callingEReplyFeed.ERequest.request().The
requestmatches the replier's open and advertisedfeed. The associatedEReplyFeedmay be retrieved by callingEReplyFeed.ERequest.replier().- Parameters:
 request- post replies tomsgto this request.
 
 - 
 
 -