@Override public void onComplete() { processor.onComplete(); } }
@Override public void onComplete() { Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } downstream.onComplete(); }
@Override public void onComplete() { Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } downstream.onComplete(); }
@Override public void onComplete() { Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } actual.onComplete(); }
@Override public void onComplete() { Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } actual.onComplete(); }
@Override public void onComplete() { if (done) { return; } for (Processor<T, T> w : windows) { w.onComplete(); } windows.clear(); done = true; drain(); }
@Override public void onComplete() { if (done) { return; } done = true; Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } actual.onComplete(); }
@Override public void onComplete() { if (done) { return; } done = true; Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } actual.onComplete(); }
/** * Emit the given values and complete the Processor. * @param <T> the value type * @param p the target processor * @param values the values to emit */ public static <T> void emit(Processor<T, ?> p, T... values) { for (T v : values) { p.onNext(v); } p.onComplete(); }
@Override public void onComplete() { if (done) { return; } for (Processor<T, T> w : windows) { w.onComplete(); } windows.clear(); done = true; drain(); }
@Override public void onComplete() { if (done) { return; } done = true; for (Processor<T, T> w : this) { w.onComplete(); } clear(); drain(); }
private void handleSendProcessorCancel(SignalType t) { if (SignalType.ON_ERROR == t) { return; } sendingSubscriptions.values().forEach(subscription -> { try { subscription.cancel(); } catch (Throwable e) { errorConsumer.accept(e); } }); channelProcessors.values().forEach(subscription -> { try { subscription.onComplete(); } catch (Throwable e) { errorConsumer.accept(e); } }); }
/** * Emit the given values and complete the Processor. * @param <T> the value type * @param p the target processor * @param values the values to emit */ public static <T> void emit(Processor<T, ?> p, T... values) { for (T v : values) { p.onNext(v); } p.onComplete(); }
@Override public void onComplete() { done = true; source.onComplete(); }
@Override public void onComplete() { done = true; source.onComplete(); }
@Override public void onComplete() { Processor<T, T> w = window; if (w != null) { window = null; w.onComplete(); } downstream.onComplete(); }
@After public void clean() { processor.onComplete(); httpServer.disposeNow(); }