public class KeysValidateFilter extends Object implements TimeoutValidationResponseFilter
| 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 |
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 |
void |
validate()
Validates the filter state.
|
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 void validate()
throws TimeoutException
TimeoutValidationResponseFilterTimeoutExceptionvalidate in interface TimeoutValidationResponseFilterTimeoutException - when a member didn't give a response.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.