11package io .temporal .common .interceptors ;
22
3- import com .google .protobuf .ByteString ;
43import io .grpc .Deadline ;
54import io .temporal .api .common .v1 .Payload ;
65import io .temporal .api .enums .v1 .NexusOperationWaitStage ;
@@ -45,19 +44,17 @@ StartNexusOperationExecutionOutput startNexusOperationExecution(
4544 /**
4645 * Returns a point-in-time snapshot of a standalone Nexus operation execution.
4746 *
48- * @param input operation ID, optional run ID, and flags controlling whether to include input and
49- * outcome payloads
47+ * @param input operation ID and optional run ID
5048 * @return output wrapping the {@link NexusOperationExecutionDescription}
5149 */
5250 DescribeNexusOperationExecutionOutput describeNexusOperationExecution (
5351 DescribeNexusOperationExecutionInput input );
5452
5553 /**
56- * Synchronously long-polls the server until the Nexus operation reaches the wait stage requested
57- * in {@code input}, then returns the outcome. Blocks the calling thread for the duration.
54+ * Synchronously long-polls the server until the Nexus operation reaches a terminal stage, then
55+ * returns the outcome. Blocks the calling thread for the duration.
5856 *
59- * @param input operation ID, optional run ID, target wait stage, and the deadline bounding the
60- * poll
57+ * @param input operation ID, optional run ID, and the deadline bounding the poll
6158 * @return output containing the run ID, wait stage reached, operation token, and either the
6259 * result payload or failure (when the operation has reached a terminal stage)
6360 */
@@ -68,20 +65,19 @@ PollNexusOperationExecutionOutput pollNexusOperationExecution(
6865 * Asynchronous variant of {@link #pollNexusOperationExecution} that returns a future without
6966 * blocking the calling thread.
7067 *
71- * @param input operation ID, optional run ID, target wait stage, and the deadline bounding the
72- * poll
68+ * @param input operation ID, optional run ID, and the deadline bounding the poll
7369 * @return a future that completes with the poll output, or completes exceptionally if the poll
7470 * fails or the deadline expires
7571 */
7672 CompletableFuture <PollNexusOperationExecutionOutput > pollNexusOperationExecutionAsync (
7773 PollNexusOperationExecutionInput input );
7874
7975 /**
80- * Lists standalone Nexus operation executions matching a Visibility query, with paging support.
76+ * Lists standalone Nexus operation executions matching a Visibility query. Pagination is handled
77+ * internally by the SDK; the returned output contains the full materialized result set.
8178 *
82- * @param input Visibility query string, page size, and optional next-page token from a prior call
83- * @return output wrapping the matching operations and the next-page token (empty when the result
84- * set is exhausted)
79+ * @param input Visibility query string
80+ * @return output wrapping the matching operations
8581 */
8682 ListNexusOperationExecutionsOutput listNexusOperationExecutions (
8783 ListNexusOperationExecutionsInput input );
@@ -199,15 +195,10 @@ public boolean isStarted() {
199195 final class DescribeNexusOperationExecutionInput {
200196 private final String operationId ;
201197 private final @ Nullable String runId ;
202- private final boolean includeInput ;
203- private final boolean includeOutcome ;
204198
205- public DescribeNexusOperationExecutionInput (
206- String operationId , @ Nullable String runId , boolean includeInput , boolean includeOutcome ) {
199+ public DescribeNexusOperationExecutionInput (String operationId , @ Nullable String runId ) {
207200 this .operationId = operationId ;
208201 this .runId = runId ;
209- this .includeInput = includeInput ;
210- this .includeOutcome = includeOutcome ;
211202 }
212203
213204 public String getOperationId () {
@@ -217,14 +208,6 @@ public String getOperationId() {
217208 public Optional <String > getRunId () {
218209 return Optional .ofNullable (runId );
219210 }
220-
221- public boolean isIncludeInput () {
222- return includeInput ;
223- }
224-
225- public boolean isIncludeOutcome () {
226- return includeOutcome ;
227- }
228211 }
229212
230213 final class DescribeNexusOperationExecutionOutput {
@@ -242,17 +225,12 @@ public NexusOperationExecutionDescription getDescription() {
242225 final class PollNexusOperationExecutionInput {
243226 private final String operationId ;
244227 private final @ Nullable String runId ;
245- private final NexusOperationWaitStage waitStage ;
246228 private final @ Nonnull Deadline deadline ;
247229
248230 public PollNexusOperationExecutionInput (
249- String operationId ,
250- @ Nullable String runId ,
251- NexusOperationWaitStage waitStage ,
252- @ Nonnull Deadline deadline ) {
231+ String operationId , @ Nullable String runId , @ Nonnull Deadline deadline ) {
253232 this .operationId = operationId ;
254233 this .runId = runId ;
255- this .waitStage = waitStage ;
256234 this .deadline = deadline ;
257235 }
258236
@@ -264,10 +242,6 @@ public Optional<String> getRunId() {
264242 return Optional .ofNullable (runId );
265243 }
266244
267- public NexusOperationWaitStage getWaitStage () {
268- return waitStage ;
269- }
270-
271245 public Deadline getDeadline () {
272246 return deadline ;
273247 }
@@ -316,46 +290,30 @@ public Optional<Failure> getFailure() {
316290
317291 final class ListNexusOperationExecutionsInput {
318292 private final @ Nullable String query ;
319- private final int pageSize ;
320- private final @ Nullable ByteString nextPageToken ;
321293
322- public ListNexusOperationExecutionsInput (
323- @ Nullable String query , int pageSize , @ Nullable ByteString nextPageToken ) {
294+ public ListNexusOperationExecutionsInput (@ Nullable String query ) {
324295 this .query = query ;
325- this .pageSize = pageSize ;
326- this .nextPageToken = nextPageToken ;
327296 }
328297
329298 public Optional <String > getQuery () {
330299 return Optional .ofNullable (query );
331300 }
332-
333- public int getPageSize () {
334- return pageSize ;
335- }
336-
337- public Optional <ByteString > getNextPageToken () {
338- return Optional .ofNullable (nextPageToken );
339- }
340301 }
341302
303+ /**
304+ * Result of a list call. Holds the full materialized result set; pagination is handled inside the
305+ * SDK and not exposed through the interceptor surface.
306+ */
342307 final class ListNexusOperationExecutionsOutput {
343308 private final List <NexusOperationExecutionListInfo > operations ;
344- private final ByteString nextPageToken ;
345309
346- public ListNexusOperationExecutionsOutput (
347- List <NexusOperationExecutionListInfo > operations , ByteString nextPageToken ) {
310+ public ListNexusOperationExecutionsOutput (List <NexusOperationExecutionListInfo > operations ) {
348311 this .operations = Collections .unmodifiableList (operations );
349- this .nextPageToken = nextPageToken ;
350312 }
351313
352314 public List <NexusOperationExecutionListInfo > getOperations () {
353315 return operations ;
354316 }
355-
356- public ByteString getNextPageToken () {
357- return nextPageToken ;
358- }
359317 }
360318
361319 final class CountNexusOperationExecutionsInput {
0 commit comments