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)
ResponseFilter
isAcceptable
in interface ResponseFilter
response
- The response (usually a serializable value)address
- The sender of responsepublic boolean needMoreResponses()
ResponseFilter
ResponseFilter.isAcceptable(Response, Address)
, this method is called to see whether we are done
with the request and can unblock the callerneedMoreResponses
in interface ResponseFilter
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.