public final class JGroupsResponseFilterAdapter extends Object implements RspFilter
ResponseFilter
.Constructor and Description |
---|
JGroupsResponseFilterAdapter(ResponseFilter r)
Creates an instance of the adapter
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAcceptable(Object 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
RspFilter.isAcceptable(Object, org.jgroups.Address) , this method is called to see whether
we are done with the request and can unblock the caller |
public JGroupsResponseFilterAdapter(ResponseFilter r)
r
- response filter to wrappublic boolean isAcceptable(Object response, Address sender)
RspFilter
isAcceptable
in interface RspFilter
response
- The response (usually a serializable value)sender
- The sender of responseRspList
) of a request,
otherwise false. In the latter case, we don't add the response to the response list.public boolean needMoreResponses()
RspFilter
RspFilter.isAcceptable(Object, org.jgroups.Address)
, this method is called to see whether
we are done with the request and can unblock the callerneedMoreResponses
in interface RspFilter
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.