DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Add nodeId to DescribeFeaturesOptions. Default value is -1empty.
| Code Block | ||||
|---|---|---|---|---|
| ||||
public class DescribeFeaturesOptions extends AbstractOptions<DescribeFeaturesOptions> {
private intOptional<Integer> nodeId = -1Optional.empty();
/**
* Set the node id to which the request should be sent. If using bootstrap controller and node id is less than 0,
* the request will be sent to the controller node. If using bootstrap broker and node id is less than 0, the
* request will be sent to the first available node.
*/
public DescribeFeaturesOptions nodeId(int nodeId) {
this.nodeId = Optional.of(nodeId;
return this;
}
/**
* The node id to which the request should be sent. If using bootstrap controller and node id is less than 0empty,
* the request will be sent to the controller node. If using bootstrap broker and node id is less than 0empty, the
* request will be sent to the first available node.
*/
public intOptional<Integer> nodeId() {
return nodeId;
}
} |
...
Default
DescribeFeaturesOptionscan work as usual.
If
nodeIdis negativeempty, the Admin client ignores it and falls back to useLeastLoadedBrokerOrActiveKController.
...