/** * Creates a new policy that wraps the provided child policy but only "allows" hosts from the * provided white list. * * @param childPolicy the wrapped policy. * @param whiteList the white listed hosts. Only hosts from this list may get connected to * (whether they will get connected to or not depends on the child policy). */ public WhiteListPolicy(LoadBalancingPolicy childPolicy, Collection<InetSocketAddress> whiteList) { super(childPolicy, buildPredicate(whiteList)); }
/** * Creates a new policy that wraps the provided child policy but only "allows" hosts * from the provided while list. * * @param childPolicy the wrapped policy. * @param whiteList the white listed hosts. Only hosts from this list may get connected * to (whether they will get connected to or not depends on the child policy). */ public WhiteListPolicy(LoadBalancingPolicy childPolicy, Collection<InetSocketAddress> whiteList) { super(childPolicy, buildPredicate(whiteList)); }
/** * Creates a new policy that wraps the provided child policy but only "allows" hosts * from the provided while list. * * @param childPolicy the wrapped policy. * @param whiteList the white listed hosts. Only hosts from this list may get connected * to (whether they will get connected to or not depends on the child policy). */ public WhiteListPolicy(LoadBalancingPolicy childPolicy, Collection<InetSocketAddress> whiteList) { super(childPolicy, buildPredicate(whiteList)); }
/** * Creates a new policy that wraps the provided child policy but only "allows" hosts * from the provided while list. * * @param childPolicy the wrapped policy. * @param whiteList the white listed hosts. Only hosts from this list may get connected * to (whether they will get connected to or not depends on the child policy). */ public WhiteListPolicy(LoadBalancingPolicy childPolicy, Collection<InetSocketAddress> whiteList) { super(childPolicy, buildPredicate(whiteList)); }