SerializedSink(BaseSink<T> sink) { this.sink = sink; this.mpscQueue = Queues.<T>unboundedMultiproducer().get(); }
WindowTimeoutSubscriber(CoreSubscriber<? super Flux<T>> actual, int maxSize, long timespan, Scheduler scheduler) { this.actual = actual; this.queue = Queues.unboundedMultiproducer().get(); this.timespan = timespan; this.scheduler = scheduler; this.maxSize = maxSize; this.worker = scheduler.createWorker(); }
WindowWhenMainSubscriber(CoreSubscriber<? super Flux<T>> actual, Publisher<U> open, Function<? super U, ? extends Publisher<V>> close, Supplier<? extends Queue<T>> processorQueueSupplier) { super(actual, Queues.unboundedMultiproducer().get()); this.open = open; this.close = close; this.processorQueueSupplier = processorQueueSupplier; this.resources = Disposables.composite(); this.windows = new ArrayList<>(); OPEN_WINDOW_COUNT.lazySet(this, 1); }
@SuppressWarnings("unchecked") JoinSubscription(CoreSubscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super TRight, ? extends R> resultSelector) { this.actual = actual; this.cancellations = Disposables.composite(); this.queue = Queues.unboundedMultiproducer().get(); this.queueBiOffer = (BiPredicate) queue; this.lefts = new LinkedHashMap<>(); this.rights = new LinkedHashMap<>(); this.leftEnd = leftEnd; this.rightEnd = rightEnd; this.resultSelector = resultSelector; ACTIVE.lazySet(this, 2); }
@SuppressWarnings("unchecked") GroupJoinSubscription(CoreSubscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super Flux<TRight>, ? extends R> resultSelector, Supplier<? extends Queue<TRight>> processorQueueSupplier) { this.actual = actual; this.cancellations = Disposables.composite(); this.processorQueueSupplier = processorQueueSupplier; this.queue = Queues.unboundedMultiproducer().get(); this.queueBiOffer = (BiPredicate) queue; this.lefts = new LinkedHashMap<>(); this.rights = new LinkedHashMap<>(); this.leftEnd = leftEnd; this.rightEnd = rightEnd; this.resultSelector = resultSelector; ACTIVE.lazySet(this, 2); }
WindowBoundaryMain(CoreSubscriber<? super Flux<T>> actual, Supplier<? extends Queue<T>> processorQueueSupplier, Queue<T> processorQueue) { this.actual = actual; this.processorQueueSupplier = processorQueueSupplier; this.window = new UnicastProcessor<>(processorQueue, this); WINDOW_COUNT.lazySet(this, 2); this.boundary = new WindowBoundaryOther<>(this); this.queue = Queues.unboundedMultiproducer().get(); }
@Test public void mpscQueuesAPI() { assertThat(Queues.unboundedMultiproducer().get()).isInstanceOf(MpscLinkedQueue.class); }
public UnboundedProcessor() { this.queue = Queues.<T>unboundedMultiproducer().get(); }
SerializedSink(BaseSink<T> sink) { this.sink = sink; this.mpscQueue = Queues.<T>unboundedMultiproducer().get(); }
public UnboundedProcessor() { this.queue = Queues.<T>unboundedMultiproducer().get(); }
WindowTimeoutSubscriber(CoreSubscriber<? super Flux<T>> actual, int maxSize, long timespan, Scheduler scheduler) { this.actual = actual; this.queue = Queues.unboundedMultiproducer().get(); this.timespan = timespan; this.scheduler = scheduler; this.maxSize = maxSize; this.worker = scheduler.createWorker(); }
WindowWhenMainSubscriber(CoreSubscriber<? super Flux<T>> actual, Publisher<U> open, Function<? super U, ? extends Publisher<V>> close, Supplier<? extends Queue<T>> processorQueueSupplier) { super(actual, Queues.unboundedMultiproducer().get()); this.open = open; this.close = close; this.processorQueueSupplier = processorQueueSupplier; this.resources = Disposables.composite(); this.windows = new ArrayList<>(); OPEN_WINDOW_COUNT.lazySet(this, 1); }
@SuppressWarnings("unchecked") JoinSubscription(CoreSubscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super TRight, ? extends R> resultSelector) { this.actual = actual; this.cancellations = Disposables.composite(); this.queue = Queues.unboundedMultiproducer().get(); this.queueBiOffer = (BiPredicate) queue; this.lefts = new LinkedHashMap<>(); this.rights = new LinkedHashMap<>(); this.leftEnd = leftEnd; this.rightEnd = rightEnd; this.resultSelector = resultSelector; ACTIVE.lazySet(this, 2); }
@SuppressWarnings("unchecked") GroupJoinSubscription(CoreSubscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super Flux<TRight>, ? extends R> resultSelector, Supplier<? extends Queue<TRight>> processorQueueSupplier) { this.actual = actual; this.cancellations = Disposables.composite(); this.processorQueueSupplier = processorQueueSupplier; this.queue = Queues.unboundedMultiproducer().get(); this.queueBiOffer = (BiPredicate) queue; this.lefts = new LinkedHashMap<>(); this.rights = new LinkedHashMap<>(); this.leftEnd = leftEnd; this.rightEnd = rightEnd; this.resultSelector = resultSelector; ACTIVE.lazySet(this, 2); }
WindowBoundaryMain(CoreSubscriber<? super Flux<T>> actual, Supplier<? extends Queue<T>> processorQueueSupplier, Queue<T> processorQueue) { this.actual = actual; this.processorQueueSupplier = processorQueueSupplier; this.window = new UnicastProcessor<>(processorQueue, this); WINDOW_COUNT.lazySet(this, 2); this.boundary = new WindowBoundaryOther<>(this); this.queue = Queues.unboundedMultiproducer().get(); }