Class ListScheduleListDescriptionIterator

  • All Implemented Interfaces:
    java.util.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.google.protobuf.ByteString getNextPageToken​(io.temporal.api.workflowservice.v1.ListSchedulesResponse response)  
      protected java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.ListSchedulesResponse> performRequest​(com.google.protobuf.ByteString nextPageToken)  
      protected java.util.List<io.temporal.api.schedule.v1.ScheduleListEntry> toElements​(io.temporal.api.workflowservice.v1.ListSchedulesResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • ListScheduleListDescriptionIterator

        public ListScheduleListDescriptionIterator​(@Nonnull
                                                   java.lang.String namespace,
                                                   @Nullable
                                                   java.lang.Integer pageSize,
                                                   @Nonnull
                                                   GenericWorkflowClient genericClient)
      • ListScheduleListDescriptionIterator

        public ListScheduleListDescriptionIterator​(@Nonnull
                                                   java.lang.String namespace,
                                                   @Nullable
                                                   java.lang.String query,
                                                   @Nullable
                                                   java.lang.Integer pageSize,
                                                   @Nonnull
                                                   GenericWorkflowClient genericClient)
    • Method Detail

      • performRequest

        protected java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.ListSchedulesResponse> performRequest​(@Nonnull
                                                                                                                                  com.google.protobuf.ByteString nextPageToken)
        Specified by:
        performRequest in class EagerPaginator<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:
        getNextPageToken in class EagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,​io.temporal.api.schedule.v1.ScheduleListEntry>
      • toElements

        protected java.util.List<io.temporal.api.schedule.v1.ScheduleListEntry> toElements​(io.temporal.api.workflowservice.v1.ListSchedulesResponse response)
        Specified by:
        toElements in class EagerPaginator<io.temporal.api.workflowservice.v1.ListSchedulesResponse,​io.temporal.api.schedule.v1.ScheduleListEntry>