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