3737 * .build();
3838 *
3939 * // Operation that takes an input (Func2 overload):
40- * String hi = client.execute(GreeterService::greet, "Ada", options );
40+ * String hi = client.execute(GreeterService::greet, options, "Ada");
4141 *
4242 * // Operation with no input (Func1 overload):
4343 * String t = client.execute(GreeterService::now, options);
4444 *
4545 * // Operation that returns Void: the same overloads work, R is just Void.
46- * client.execute(GreeterService::log, "hello", options );
46+ * client.execute(GreeterService::log, options, "hello");
4747 *
4848 * // Get a handle instead of blocking:
49- * NexusOperationHandle<String> handle = client.start(GreeterService::greet, "Ada", options );
49+ * NexusOperationHandle<String> handle = client.start(GreeterService::greet, options, "Ada");
5050 * String result = handle.getResult();
5151 *
5252 * // Run asynchronously:
5353 * CompletableFuture<String> future =
54- * client.executeAsync(GreeterService::greet, "Ada", options );
54+ * client.executeAsync(GreeterService::greet, options, "Ada");
5555 * }</pre>
5656 *
5757 * @param <T> the Nexus service interface this client is bound to
@@ -65,35 +65,35 @@ public interface NexusServiceClient<T> extends UntypedNexusServiceClient {
6565 * Executes an operation synchronously with per-call options.
6666 *
6767 * @param operation a method reference on {@code T} identifying the operation
68- * @param input the operation input
6968 * @param options per-call options controlling timeouts, search attributes, etc.
69+ * @param input the operation input
7070 * @return the operation result
7171 * @throws NexusOperationException if the operation failed, timed out, or was cancelled
7272 */
73- <U , R > R execute (Functions .Func2 <T , U , R > operation , U input , StartNexusOperationOptions options );
73+ <U , R > R execute (Functions .Func2 <T , U , R > operation , StartNexusOperationOptions options , U input );
7474
7575 /**
7676 * Starts an operation with per-call options and returns a typed handle.
7777 *
7878 * @param operation a method reference on {@code T} identifying the operation
79- * @param input the operation input
8079 * @param options per-call options controlling timeouts, search attributes, etc.
80+ * @param input the operation input
8181 * @return a typed handle bound to the started operation
8282 */
8383 <U , R > NexusOperationHandle <R > start (
84- Functions .Func2 <T , U , R > operation , U input , StartNexusOperationOptions options );
84+ Functions .Func2 <T , U , R > operation , StartNexusOperationOptions options , U input );
8585
8686 /**
87- * Async variant of {@link #execute(Functions.Func2, Object, StartNexusOperationOptions )}. Returns
87+ * Async variant of {@link #execute(Functions.Func2, StartNexusOperationOptions, Object )}. Returns
8888 * a {@link CompletableFuture} that completes with the typed result, or completes exceptionally if
8989 * the operation fails.
9090 *
9191 * @param operation a method reference on {@code T} identifying the operation
92- * @param input the operation input
9392 * @param options per-call options controlling timeouts, search attributes, etc.
93+ * @param input the operation input
9494 */
9595 <U , R > CompletableFuture <R > executeAsync (
96- Functions .Func2 <T , U , R > operation , U input , StartNexusOperationOptions options );
96+ Functions .Func2 <T , U , R > operation , StartNexusOperationOptions options , U input );
9797
9898 /**
9999 * Executes a no-input operation synchronously with per-call options. Use this overload for Nexus
0 commit comments