SpscArrayQueue(int capacity) { super(Queues.ceilingNextPowerOfTwo(capacity)); }
SpscLinkedArrayQueue(int linkSize) { int c = Queues.ceilingNextPowerOfTwo(Math.max(8, linkSize)); this.producerArray = this.consumerArray = new AtomicReferenceArray<>(c + 1); this.mask = c - 1; }
FluxFilterWhenSubscriber(CoreSubscriber<? super T> actual, Function<? super T, ? extends Publisher<Boolean>> asyncPredicate, int bufferSize) { this.actual = actual; this.ctx = actual.currentContext(); this.toFilter = new AtomicReferenceArray<>(Queues.ceilingNextPowerOfTwo(bufferSize)); this.asyncPredicate = asyncPredicate; this.bufferSize = bufferSize; }
SpscArrayQueue(int capacity) { super(Queues.ceilingNextPowerOfTwo(capacity)); }
SpscLinkedArrayQueue(int linkSize) { int c = Queues.ceilingNextPowerOfTwo(Math.max(8, linkSize)); this.producerArray = this.consumerArray = new AtomicReferenceArray<>(c + 1); this.mask = c - 1; }
FluxFilterWhenSubscriber(CoreSubscriber<? super T> actual, Function<? super T, ? extends Publisher<Boolean>> asyncPredicate, int bufferSize) { this.actual = actual; this.ctx = actual.currentContext(); this.toFilter = new AtomicReferenceArray<>(Queues.ceilingNextPowerOfTwo(bufferSize)); this.asyncPredicate = asyncPredicate; this.bufferSize = bufferSize; }