Interface NodeFilter

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface NodeFilter
    The NodeFilter, if supplied, will retrieve all discovered nodes and might apply additional filtering based on vendor provided metadata. These metadata are expected to be provided using the DiscoveryNode.getProperties() method and may contain additional information initially setup by the user.

    This is useful for additional security settings, to apply a certain type of policy or to work around insufficient query languages of cloud providers.

    Denied DiscoveryNodes will not be handed over to the Hazelcast connection framework and therefore are not known to the discovered.

    • Method Detail

      • test

        boolean test​(DiscoveryNode candidate)
        Accepts or denies a DiscoveryNode based on the implemented rules.
        candidate - the candidate to be tested
        true if the DiscoveryNode is selected to be discovered, otherwise false.