Constructor
new WhiteListPolicy(childPolicy, allowList)
Creates a new instance of the policy.
Parameters:
Name | Type | Description |
---|---|---|
childPolicy |
LoadBalancingPolicy | the wrapped policy. |
allowList |
Array.<string> | The hosts address in the format ipAddress:port. Only hosts from this list may get connected to (whether they will get connected to or not depends on the child policy). |
- Deprecated:
- Use allow-list instead. It will be removed in future major versions.
- Source:
Extends
- AllowListPolicy