Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
linenumberstrue
public class DescribeFeaturesOptions extends AbstractOptions<DescribeFeaturesOptions> {
      private Optional<Integer>OptionalInt nodeId = OptionalOptionalInt.empty();

    /**
     * Set the node id to which the request should be sent.
     */
    public DescribeFeaturesOptions nodeId(int nodeId) {
        this.nodeId = OptionalOptionalInt.of(nodeId);
        return this;
    }

    /**
     * The node id to which the request should be sent. If using bootstrap controller and the node id is empty,
     * the request will be sent to the controller node. If using bootstrap broker and node id is empty, the
     * request will be sent to the first available nodearbitrary controller/broker.
     */
    public Optional<Integer>OptionalInt nodeId() {
        return nodeId;
    }
}

...