Package io.hekate.cluster
Interface ClusterFilter
-
- 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 ClusterFilter
Interface for filtering groups of cluster nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ClusterNode>
apply(List<ClusterNode> nodes)
Applies this filter to the specified group of cluster nodes and returns a new set of only those nodes that were accepted by this filter.
-
-
-
Method Detail
-
apply
List<ClusterNode> apply(List<ClusterNode> nodes)
Applies this filter to the specified group of cluster nodes and returns a new set of only those nodes that were accepted by this filter.- Parameters:
nodes
- Nodes to filter.- Returns:
- New set of nodes that were accepted by this filter or an empty set if none of the nodes were accepted.
-
-