Пример #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");
   }
 }