public class KeysValidateFilter extends Object implements ResponseFilter
Constructor and Description |
---|
KeysValidateFilter(Address localAddress,
Set<Object> keysAwaitingValidation) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAcceptable(Response response,
Address sender)
Determines whether a response from a given sender should be added to the response list of the request
|
boolean |
isAllKeysValidated() |
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 boolean isAcceptable(Response response, Address sender)
ResponseFilter
isAcceptable
in interface ResponseFilter
response
- The response (usually a serializable value)sender
- 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
public final boolean isAllKeysValidated()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.