public final class IgnoreExtraResponsesValidityFilter extends Object implements ResponseFilter
null to ensure we don't wait for responses from
cluster members that weren't properly started when the command was sent.
JGroups calls our handler while holding a lock, so we don't need any synchronization.| Constructor and Description |
|---|
IgnoreExtraResponsesValidityFilter(Collection<Address> targets,
Address self) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAcceptable(Response response,
Address address)
Determines whether a response from a given sender should be added to the response list of the request
|
boolean |
needMoreResponses()
Right after calling
ResponseFilter.isAcceptable(Response, Address), this method is called to see whether we are done
with the request and can unblock the caller |
public IgnoreExtraResponsesValidityFilter(Collection<Address> targets, Address self)
public boolean isAcceptable(Response response, Address address)
ResponseFilterisAcceptable in interface ResponseFilterresponse - The response (usually a serializable value)address - The sender of responsepublic boolean needMoreResponses()
ResponseFilterResponseFilter.isAcceptable(Response, Address), this method is called to see whether we are done
with the request and can unblock the callerneedMoreResponses in interface ResponseFilterCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.