public class ClusteredGetResponseValidityFilter extends Object implements ResponseFilter
ClusteredGetCommands.
JGroups calls our handler while holding a lock, so we don't need any synchronization.| Constructor and Description |
|---|
ClusteredGetResponseValidityFilter(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 ClusteredGetResponseValidityFilter(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.