public interface RspFilter
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isAcceptable(java.lang.Object response,
Address sender)
Determines whether a response from a given sender should be added to the response list of the request
|
boolean |
needMoreResponses()
Right after calling
isAcceptable(Object, Address), this method is called to see whether
we are done with the request and can unblock the caller |
boolean isAcceptable(java.lang.Object response,
Address sender)
response - The response (usually a serializable value)sender - The sender of responseRspList) of a request,
otherwise false. In the latter case, we don't add the response to the response list.boolean needMoreResponses()
isAcceptable(Object, Address), this method is called to see whether
we are done with the request and can unblock the caller