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)
ResponseFilterisAcceptable in interface ResponseFilterresponse - The response (usually a serializable value)sender - 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 ResponseFilterpublic final boolean isAllKeysValidated()
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.