Class ListScheduleListDescriptionIterator
java.lang.Object
io.temporal.internal.client.EagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,io.temporal.api.schedule.v1.ScheduleListEntry>
io.temporal.client.ListScheduleListDescriptionIterator
- All Implemented Interfaces:
Iterator<io.temporal.api.schedule.v1.ScheduleListEntry>
public final class ListScheduleListDescriptionIterator
extends EagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,io.temporal.api.schedule.v1.ScheduleListEntry>
Eager iterator for listing schedules.
-
Constructor Summary
ConstructorsConstructorDescriptionListScheduleListDescriptionIterator(String namespace, Integer pageSize, GenericWorkflowClient genericClient) ListScheduleListDescriptionIterator(String namespace, String query, Integer pageSize, GenericWorkflowClient genericClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.protobuf.ByteStringgetNextPageToken(io.temporal.api.workflowservice.v1.ListSchedulesResponse response) protected CompletableFuture<io.temporal.api.workflowservice.v1.ListSchedulesResponse> performRequest(com.google.protobuf.ByteString nextPageToken) protected List<io.temporal.api.schedule.v1.ScheduleListEntry> toElements(io.temporal.api.workflowservice.v1.ListSchedulesResponse response) Methods inherited from class io.temporal.internal.client.EagerPaginator
hasNext, init, nextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ListScheduleListDescriptionIterator
public ListScheduleListDescriptionIterator(@Nonnull String namespace, @Nullable Integer pageSize, @Nonnull GenericWorkflowClient genericClient) -
ListScheduleListDescriptionIterator
public ListScheduleListDescriptionIterator(@Nonnull String namespace, @Nullable String query, @Nullable Integer pageSize, @Nonnull GenericWorkflowClient genericClient)
-
-
Method Details
-
performRequest
protected CompletableFuture<io.temporal.api.workflowservice.v1.ListSchedulesResponse> performRequest(@Nonnull com.google.protobuf.ByteString nextPageToken) - Specified by:
performRequestin classEagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,io.temporal.api.schedule.v1.ScheduleListEntry>
-
getNextPageToken
protected com.google.protobuf.ByteString getNextPageToken(io.temporal.api.workflowservice.v1.ListSchedulesResponse response) - Specified by:
getNextPageTokenin classEagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,io.temporal.api.schedule.v1.ScheduleListEntry>
-
toElements
protected List<io.temporal.api.schedule.v1.ScheduleListEntry> toElements(io.temporal.api.workflowservice.v1.ListSchedulesResponse response) - Specified by:
toElementsin classEagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,io.temporal.api.schedule.v1.ScheduleListEntry>
-