@Override public void resume(boolean async) { paused = false; for (RowUpstream rowUpstream : rowUpstreams) { rowUpstream.resume(async); } }
@Override public void pause() { paused = true; for (RowUpstream rowUpstream : rowUpstreams) { rowUpstream.pause(); } }
public void repeat() { if (activeUpstreams.compareAndSet(0, rowUpstreams.size())) { pauseFifo.clear(); for (RowUpstream rowUpstream : rowUpstreams) { rowUpstream.repeat(); } } else { throw new IllegalStateException("Can't repeat if there are still active upstreams"); } }