public class ClusteredGetResponseValidityFilter extends Object implements ResponseFilter
ClusteredGetCommand
s.
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)
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.