Package org.jgroups.blocks.mux
Class NoMuxHandlerRspFilter
java.lang.Object
org.jgroups.blocks.mux.NoMuxHandlerRspFilter
- All Implemented Interfaces:
RspFilter
Response filter that reject any
NoMuxHandler responses.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAcceptable(Object response, Address sender) Determines whether a response from a given sender should be added to the response list of the requestbooleanRight after callingRspFilter.isAcceptable(Object, org.jgroups.Address), this method is called to see whether we are done with the request and can unblock the caller
-
Constructor Details
-
NoMuxHandlerRspFilter
public NoMuxHandlerRspFilter() -
NoMuxHandlerRspFilter
-
-
Method Details
-
isAcceptable
Description copied from interface:RspFilterDetermines whether a response from a given sender should be added to the response list of the request- Specified by:
isAcceptablein interfaceRspFilter- Parameters:
response- The response (usually a serializable value)sender- The sender of response- Returns:
- True if we should add the response to the response list (
RspList) of a request, otherwise false. In the latter case, we don't add the response to the response list.
-
needMoreResponses
public boolean needMoreResponses()Description copied from interface:RspFilterRight after callingRspFilter.isAcceptable(Object, org.jgroups.Address), this method is called to see whether we are done with the request and can unblock the caller- Specified by:
needMoreResponsesin interfaceRspFilter- Returns:
- False if the request is done, otherwise true
-