Exemplo n.º 1
0
 @Override
 public void resume(boolean async) {
   paused = false;
   for (RowUpstream rowUpstream : rowUpstreams) {
     rowUpstream.resume(async);
   }
 }
Exemplo n.º 2
0
 @Override
 public void pause() {
   paused = true;
   for (RowUpstream rowUpstream : rowUpstreams) {
     rowUpstream.pause();
   }
 }
Exemplo n.º 3
0
 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");
   }
 }