Class ClusteredGetResponseValidityFilter

  • All Implemented Interfaces:
    ResponseFilter

    public class ClusteredGetResponseValidityFilter
    extends Object
    implements ResponseFilter
    A filter that tests the validity of ClusteredGetCommands. JGroups calls our handler while holding a lock, so we don't need any synchronization.
    Since:
    4.0
    Author:
    Manik Surtani
    • Constructor Detail

      • ClusteredGetResponseValidityFilter

        public ClusteredGetResponseValidityFilter​(Collection<Address> targets,
                                                  Address self)
    • Method Detail

      • isAcceptable

        public boolean isAcceptable​(Response response,
                                    Address address)
        Description copied from interface: ResponseFilter
        Determines whether a response from a given sender should be added to the response list of the request
        Specified by:
        isAcceptable in interface ResponseFilter
        Parameters:
        response - The response (usually a serializable value)
        address - The sender of response
        Returns:
        True if we should add the response to the response list of a request, otherwise false. In the latter case, we don't add the response to the response list.