default QueryDsl<T> withSort(final Sort<T> sort) { return withSort(asList(sort)); }
private QueryAllImpl(final QueryDsl<T, C> baseQuery, final long pageSize) { this.baseQuery = !baseQuery.sort().isEmpty() ? baseQuery : baseQuery.withSort(QuerySort.of("id asc")); this.pageSize = pageSize; }
RunningSubscription(final QueryDsl<T, C> seedQuery, final Function<T, String> idExtractor, final SphereClient sphereClient, final Subscriber<? super T> subscriber, final SubscriptionImpl<T, C> tcSubscription) { this.idExtractor = idExtractor; this.tcSubscription = tcSubscription; this.seedQuery = seedQuery.withSort(QuerySort.of("id asc")).withFetchTotal(false); this.sphereClient = QueueSphereClientDecorator.of(sphereClient, 1, false); this.subscriber = subscriber; }
ForAllSubscription(final QueryDsl<T, C> seedQuery, final SphereClient sphereClient, final Subscriber<? super T> subscriber) { this.seedQuery = seedQuery.withSort(QuerySort.of("id asc")).withFetchTotal(false).withLimit(ELEMENTS_PER_QUERY); this.sphereClient = QueueSphereClientDecorator.of(sphereClient, 1, false); this.subscriber = subscriber; }