use of reactor.util.concurrent.Queues in project reactor-core by reactor.
the class UnicastProcessorTest method createOverrideAll.
@Test
public void createOverrideAll() {
Disposable onTerminate = () -> {
};
Consumer<? super Integer> onOverflow = t -> {
};
Queue<Integer> queue = Queues.<Integer>get(10).get();
UnicastProcessor<Integer> processor = UnicastProcessor.create(queue, onOverflow, onTerminate);
assertProcessor(processor, queue, onOverflow, onTerminate);
}
use of reactor.util.concurrent.Queues in project reactor-core by reactor.
the class FluxPeekFuseableTest method asyncFusionAvailable.
@Test
public void asyncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
UnicastProcessor.create(Queues.<Integer>get(2).get()).doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
Assert.assertTrue("Non-fuseable upstream" + s, s instanceof Fuseable.QueueSubscription);
}
use of reactor.util.concurrent.Queues in project reactor-core by reactor.
the class FluxPeekTest method asyncFusionAvailable.
@Test
public void asyncFusionAvailable() {
AssertSubscriber<Integer> ts = AssertSubscriber.create();
UnicastProcessor.create(Queues.<Integer>get(2).get()).doOnNext(v -> {
}).subscribe(ts);
Subscription s = ts.upstream();
Assert.assertTrue("Non-fuseable upstream" + s, s instanceof Fuseable.QueueSubscription);
}
Aggregations