Package com.hazelcast.spi.discovery
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.
@FunctionalInterface 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 theDiscoveryNode.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
DiscoveryNode
s will not be handed over to the Hazelcast connection framework and therefore are not known to the discovered.- Since:
- 3.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
test(DiscoveryNode candidate)
Accepts or denies aDiscoveryNode
based on the implemented rules.
-
-
-
Method Detail
-
test
boolean test(DiscoveryNode candidate)
Accepts or denies aDiscoveryNode
based on the implemented rules.- Parameters:
candidate
- the candidate to be tested- Returns:
- true if the DiscoveryNode is selected to be discovered, otherwise false.
-
-